| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(final E
element to be added to this set e)Overrides java. Implements java.
Deprecated
Unsupported operation.
Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | addAll(final Collection<? extends E>
collection containing elements to be added to this set list)Overrides java. Implements java.
Deprecated
Unsupported operation.
Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| public void | clear()
Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes all of the elements from this set (optional operation). |
| public boolean | remove(final Object
object to be removed from this set, if present o)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes the specified element from this set if it is present (optional operation). |
| public boolean | removeAll(final Collection<?>
collection containing elements to be removed from this set list)Overrides java. Implements java.
Deprecated
Unsupported operation.
Removes from this set all of its elements that are 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 set list)Overrides java. Implements java.
Deprecated
Unsupported operation.
Retains only the elements in this set that are contained in the specified collection (optional operation). |
| AbstractUnmodifiableSet | back to summary |
|---|---|
| public AbstractUnmodifiableSet() | |
| add | back to summary |
|---|---|
| public boolean add(final E e) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(final Collection<? extends E> list) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| remove | back to summary |
|---|---|
| public boolean remove(final Object o) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(final Collection<?> list) Overrides java. Implements java. Doc from java. Deprecated Unsupported operation. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets. This implementation determines which is the smaller of this set
and the specified collection, by invoking the Note that this implementation will throw an
| |
| 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 set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |