java.lang.Iterable
, java.util.Collection
, java.util.Set
AbstractSerializableSetDecorator
, AbstractSortedSetDecorator
, UnmodifiableEntrySet
public abstract class AbstractSetDecorator extends AbstractCollectionDecorator implements java.util.Set
Set
to provide additional behaviour.
Methods are forwarded directly to the decorated set.
collection
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractSetDecorator() |
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSetDecorator(java.util.Set set) |
Constructor that wraps (not copies).
|
Modifier and Type | Method | Description |
---|---|---|
protected java.util.Set |
getSet() |
Gets the set being decorated.
|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
protected AbstractSetDecorator()
protected AbstractSetDecorator(java.util.Set set)
set
- the set to decorate, must not be nulljava.lang.IllegalArgumentException
- if set is nullCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.