E - the type of the elements in the 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.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, setCollection, size, toArray, toArray, toStringprotected AbstractSetDecorator()
protected AbstractSetDecorator(Set<E> set)
set - the set to decorate, must not be nullIllegalArgumentException - if set is nullprotected Set<E> decorated()
decorated in class AbstractCollectionDecorator<E>Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.