Class AbstractSetDecorator<E>
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections4.set.AbstractSetDecorator<E>
- Type Parameters:
E- the type of the elements in this set
- All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>
- Direct Known Subclasses:
AbstractInputCheckedMapDecorator.EntrySet, AbstractSerializableSetDecorator, AbstractSortedSetDecorator, UnmodifiableEntrySet
public abstract class AbstractSetDecorator<E>
extends AbstractCollectionDecorator<E>
implements Set<E>
Decorates another
Set to provide additional behaviour.
Methods are forwarded directly to the decorated set.
- Since:
- 3.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor only used in deserialization, do not use otherwise.protectedAbstractSetDecorator(Set<E> set) Constructor that wraps (not copies). -
Method Summary
Methods inherited from class AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version- See Also:
-
-
Constructor Details
-
AbstractSetDecorator
protected AbstractSetDecorator()Constructor only used in deserialization, do not use otherwise.- Since:
- 3.1
-
AbstractSetDecorator
Constructor that wraps (not copies).- Parameters:
set- the set to decorate, must not be null- Throws:
NullPointerException- if set is null
-
-
Method Details
-
decorated
Gets the set being decorated.- Overrides:
decoratedin classAbstractCollectionDecorator<E>- Returns:
- the decorated set
-
equals
-
hashCode
-