E - type of the elements in this collection@Generated(value="br.com.objectos.latest.processor.TemplateProcessor") public interface BaseCollection<E> extends Collection<E>, Joinable, br.com.objectos.core.object.ToStringObject
Collection interface for the Objectos Collections
API.
Implementations of this interface are required to reject null
elements.
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds the specified element to this collection.
|
boolean |
addAll(Collection<? extends E> c)
Adds all of the elements of the specified collection to this collection.
|
boolean |
contains(Object first,
Object... more)
Returns
true if this collection contains all the given values. |
E |
getOnly()
Returns the only element of this collection or throws an exception if the
collection is empty or if the collection contains more than one element.
|
UnmodifiableIterator<E> |
iterator()
Returns an unmodifiable iterator over the elements in this collection.
|
boolean |
remove(Object o)
This operation is not supported.
|
boolean |
removeAll(Collection<?> c)
This operation is not supported.
|
boolean |
retainAll(Collection<?> c)
This operation is not supported.
|
clear, contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArrayboolean add(E e)
add in interface Collection<E>e - an element to be added to this collectiontrue if this collection was modified as a result of this
operationNullPointerException - if the specified element is nullboolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>c - a collection containing the elements to be added to this collectiontrue if this collection was modified as a result of this
operationNullPointerException - if the specified collection is null or if any of its
element is nullboolean contains(Object first, Object... more)
true if this collection contains all the given values. More
formally, and using the contains definition given by
Collection.contains(Object), returns true if and
only if this collection contains the first specified element or if
contains any element of rest array.
This method does not throw a ClassCastException if any of the
supplied values if of a type that is incompatible with this collection.
first - the first element to check for presence in the collectionmore - the additional elements to check for presence in the collectiontrue if this collection contains any of the given valuesE getOnly() throws IllegalStateException
IllegalStateException - if the collection is empty or if the collection contains more than
one elementUnmodifiableIterator<E> iterator()
boolean remove(Object o)
This method performs no operation other than throw an
UnsupportedOperationException.
remove in interface Collection<E>o - ignored (this operation is not supported)UnsupportedOperationException - alwaysboolean removeAll(Collection<?> c)
This method performs no operation other than throw an
UnsupportedOperationException.
removeAll in interface Collection<E>c - ignored (this operation is not supported)UnsupportedOperationException - alwaysboolean retainAll(Collection<?> c)
This method performs no operation other than throw an
UnsupportedOperationException.
retainAll in interface Collection<E>c - ignored (this operation is not supported)UnsupportedOperationException - alwaysCopyright © 2021–2022 Objectos Software LTDA. All rights reserved.