Package org.apache.commons.collections.set
package org.apache.commons.collections.set
This package contains implementations of the
Set
and
SortedSet
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
- Synchronized - synchronizes method access for multi-threaded environments
- Unmodifiable - ensures the collection cannot be altered
- Predicated - ensures that only elements that are valid according to a predicate can be added
- Typed - ensures that only elements that are of a specific type can be added
- Transformed - transforms each element added
- ListOrdered - ensures that insertion order is retained
- MapBackedSet - a set formed by decorating a Map
-
ClassDescriptionSerializable subclass of AbstractSetDecorator.Decorates another
Set
to provide additional behaviour.Decorates anotherSortedSet
to provide additional behaviour.Decorates a set of other sets to provide a single unified view.Define callbacks for mutation operations.Decorates anotherSet
to ensure that the order of addition is retained and used by the iterator.Decorates aMap
to obtainSet
behaviour.Decorates anotherSet
to validate that all additions match a specified predicate.Decorates anotherSortedSet
to validate that all additions match a specified predicate.Decorates anotherSet
to synchronize its behaviour for a multi-threaded environment.Decorates anotherSortedSet
to synchronize its behaviour for a multi-threaded environment.Decorates anotherSet
to transform objects that are added.Decorates anotherSortedSet
to transform objects that are added.Decorates anotherSet
to validate that elements added are of a specific type.Decorates anotherSortedSet
to validate that elements added are of a specific type.Decorates anotherSet
to ensure it can't be altered.Decorates anotherSortedSet
to ensure it can't be altered.