E
- the type of the elements in the setpublic abstract class AbstractSetDecorator<E> extends AbstractCollectionDecorator<E> implements java.util.Set<E>
Set
to provide additional behaviour.
Methods are forwarded directly to the decorated set.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Serialization version
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractSetDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSetDecorator(java.util.Set<E> set)
Constructor that wraps (not copies).
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<E> |
decorated()
Gets the set being decorated.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
protected AbstractSetDecorator()
protected AbstractSetDecorator(java.util.Set<E> set)
set
- the set to decorate, must not be nulljava.lang.NullPointerException
- if set is nullprotected java.util.Set<E> decorated()
decorated
in class AbstractCollectionDecorator<E>
public boolean equals(java.lang.Object object)