E - the type of the elements in this setpublic abstract class AbstractSetDecorator<E> extends AbstractCollectionDecorator<E> implements Set<E>
Set to provide additional behaviour.
Methods are forwarded directly to the decorated set.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSetDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSetDecorator(Set<E> set)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<E> |
decorated()
Gets the set being decorated.
|
boolean |
equals(Object object) |
int |
hashCode() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected AbstractSetDecorator()
protected AbstractSetDecorator(Set<E> set)
set - the set to decorate, must not be nullNullPointerException - if set is nullCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.