E
- the type of the elements in the setjava.lang.Iterable<E>
, java.util.Collection<E>
, java.util.Set<E>
AbstractSerializableSetDecorator
, AbstractSortedSetDecorator
, UnmodifiableEntrySet
public 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 | Constructor | 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 | 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
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)
Copyright © 2001-2019 - Apache Software Foundation