public abstract class AbstractSetDecorator extends AbstractCollectionDecorator implements Set
Set
to provide additional behaviour.
Methods are forwarded directly to the decorated set.
collection
Modifier | Constructor and Description |
---|---|
protected |
AbstractSetDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractSetDecorator(Set set)
Constructor that wraps (not copies).
|
Modifier and Type | Method and Description |
---|---|
protected Set |
getSet()
Gets the set being decorated.
|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected AbstractSetDecorator()
protected AbstractSetDecorator(Set set)
set
- the set to decorate, must not be nullIllegalArgumentException
- if set is nullprotected Set getSet()
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.