Package org.apache.commons.collections4.set
This package contains implementations of the
Set
,
SortedSet
and
NavigableSet
interfaces.
The implementations are in the form of direct implementations and decorators. A decorator wraps another implementation of the interface to add some specific additional functionality.
The following implementations are provided in the package:
- CompositeSet - a set that combines multiple sets into one
- Unmodifiable - ensures the collection cannot be altered
- Predicated - ensures that only elements that are valid according to a predicate can be added
- Transformed - transforms each element added
- ListOrdered - ensures that insertion order is retained
- MapBackedSet - a set formed by decorating a Map
-
Interface Summary Interface Description CompositeSet.SetMutator<E> Define callbacks for mutation operations. -
Class Summary Class Description AbstractNavigableSetDecorator<E> Decorates anotherNavigableSet
to provide additional behaviour.AbstractSerializableSetDecorator<E> Serializable subclass of AbstractSetDecorator.AbstractSetDecorator<E> Decorates anotherSet
to provide additional behaviour.AbstractSortedSetDecorator<E> Decorates anotherSortedSet
to provide additional behaviour.CompositeSet<E> Decorates a set of other sets to provide a single unified view.ListOrderedSet<E> Decorates anotherSet
to ensure that the order of addition is retained and used by the iterator.MapBackedSet<E,V> Decorates aMap
to obtainSet
behaviour.PredicatedNavigableSet<E> Decorates anotherNavigableSet
to validate that all additions match a specified predicate.PredicatedSet<E> Decorates anotherSet
to validate that all additions match a specified predicate.PredicatedSortedSet<E> Decorates anotherSortedSet
to validate that all additions match a specified predicate.TransformedNavigableSet<E> Decorates anotherNavigableSet
to transform objects that are added.TransformedSet<E> Decorates anotherSet
to transform objects that are added.TransformedSortedSet<E> Decorates anotherSortedSet
to transform objects that are added.UnmodifiableNavigableSet<E> Decorates anotherNavigableSet
to ensure it can't be altered.UnmodifiableSet<E> Decorates anotherSet
to ensure it can't be altered.UnmodifiableSortedSet<E> Decorates anotherSortedSet
to ensure it can't be altered.