| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(final E
element whose presence in this collection is to be ensured e)Overrides java. Implements java.
Deprecated
Unsupported operation.
Ensures that this collection contains the specified element (optional operation). |
| public boolean | addAll(final Collection<? extends E>
collection containing elements to be added to this collection c)Overrides java. Implements java.
Deprecated
Unsupported operation.
Adds all of the elements in the specified collection to this collection (optional operation). |
| public void | clear()
Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of the elements from this collection (optional operation). |
| public boolean | remove(final Object
element to be removed from this collection, if present o)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
| public boolean | removeAll(final Collection<?>
collection containing elements to be removed from this collection c)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of this collection's elements that are also contained in the specified collection (optional operation). |
| public boolean | removeIf(final Predicate<? super E>
a predicate which returns filter)true for elements to be
removedOverrides default java.
Deprecated
Unsupported operation.
Removes all of the elements of this collection that satisfy the given predicate (optional operation). |
| public boolean | retainAll(final Collection<?>
collection containing elements to be retained in this collection list)Overrides java. Implements java.
Deprecated
Unsupported operation.
Retains only the elements in this collection that are contained in the specified collection (optional operation). |
| AbstractUnmodifiableCollection | back to summary |
|---|---|
| public AbstractUnmodifiableCollection() | |
| add | back to summary |
|---|---|
| public boolean add(final E e) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Ensures that this collection contains the specified element (optional
operation). Returns
Collections that support this operation may place limitations on what
elements may be added to this collection. In particular, some
collections will refuse to add
If a collection refuses to add a particular element for any reason
other than that it already contains the element, it must throw
an exception (rather than returning
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final Collection<? extends E> c) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Adds all of the elements in the specified collection to this collection (optional operation). The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified collection is this collection, and this collection is nonempty.) If the specified collection has a defined encounter order, processing of its elements generally occurs in that order.
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of the elements from this collection (optional operation). The collection will be empty after this method returns.
| |
| remove | back to summary |
|---|---|
| public boolean remove(final Object o) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes a single instance of the specified element from this
collection, if it is present (optional operation). More formally,
removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(final Collection<?> c) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of this collection's elements that are also contained in the specified collection (optional operation). After this call returns, this collection will contain no elements in common with the specified collection.
| |
| removeIf | back to summary |
|---|---|
| public boolean removeIf(final Predicate<? super E> filter) Overrides default java. Doc from java. Deprecated Unsupported operation. Removes all of the elements of this collection that satisfy the given predicate (optional operation). Errors or runtime exceptions thrown during iteration or by the predicate are relayed to the caller.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(final Collection<?> list) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Retains only the elements in this collection that are contained in the specified collection (optional operation). In other words, removes from this collection all of its elements that are not contained in the specified collection.
| |