| Package | Description |
|---|---|
| org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
| org.apache.commons.collections4.collection |
This package contains implementations of the
Collection interface.
|
| org.apache.commons.collections4.multimap |
This package contains implementations of the
MultiValuedMap interfaces.
|
| org.apache.commons.collections4.multiset |
This package contains implementations of the
MultiSet and
SortedMultiSet interfaces.
|
| Modifier and Type | Field and Description |
|---|---|
static MultiSet |
MultiSetUtils.EMPTY_MULTISET
An empty unmodifiable multiset.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> MultiSet |
MultiSetUtils.emptyMultiSet()
Get an empty
MultiSet.
|
MultiSet |
MultiValuedMap.keys()
Returns a
MultiSet view of the keys contained in this multi-valued map.
|
static <E> MultiSet |
MultiSetUtils.predicatedMultiSet(MultiSet
Returns a predicated (validating) multiset backed by the given multiset.
|
static <E> MultiSet |
MultiSetUtils.synchronizedMultiSet(MultiSet
Returns a synchronized (thread-safe) multiset backed by the given multiset.
|
static <E> MultiSet |
MultiSetUtils.unmodifiableMultiSet(MultiSet
Returns an unmodifiable view of the given multiset.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> MultiSet |
MultiSetUtils.predicatedMultiSet(MultiSet
Returns a predicated (validating) multiset backed by the given multiset.
|
static <E> MultiSet |
MultiSetUtils.synchronizedMultiSet(MultiSet
Returns a synchronized (thread-safe) multiset backed by the given multiset.
|
static <E> MultiSet |
MultiSetUtils.unmodifiableMultiSet(MultiSet
Returns an unmodifiable view of the given multiset.
|
| Modifier and Type | Method and Description |
|---|---|
MultiSet |
PredicatedCollection.Builder.createPredicatedMultiSet()
Create a new predicated multiset filled with the accepted elements.
|
MultiSet |
PredicatedCollection.Builder.createPredicatedMultiSet(MultiSet
Decorates the given multiset with validating behavior using the predicate.
|
| Modifier and Type | Method and Description |
|---|---|
MultiSet |
PredicatedCollection.Builder.createPredicatedMultiSet(MultiSet
Decorates the given multiset with validating behavior using the predicate.
|
| Modifier and Type | Method and Description |
|---|---|
MultiSet |
AbstractMultiValuedMap.keys()
Returns a
MultiSet view of the key mapping contained in this map.
|
MultiSet |
UnmodifiableMultiValuedMap.keys()
|
MultiSet |
AbstractMultiValuedMapDecorator.keys()
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMapMultiSet<E>
Abstract implementation of the
MultiSet interface to simplify the creation of subclass implementations.
|
class |
AbstractMultiSet<E>
Abstract implementation of the
MultiSet interface to simplify the creation of subclass implementations.
|
class |
AbstractMultiSetDecorator<E>
Decorates another
MultSet to provide additional behaviour.
|
class |
HashMultiSet<E>
Implements
MultiSet, using a
HashMap to provide the data storage.
|
class |
PredicatedMultiSet<E>
Decorates another
MultiSet to validate that additions match a specified predicate.
|
class |
SynchronizedMultiSet<E>
Decorates another
MultiSet to synchronize its behaviour for a multi-threaded environment.
|
class |
UnmodifiableMultiSet<E>
Decorates another
MultiSet to ensure it can't be altered.
|
| Modifier and Type | Method and Description |
|---|---|
protected MultiSet |
PredicatedMultiSet.decorated()
Gets the decorated multiset.
|
protected MultiSet |
AbstractMultiSetDecorator.decorated()
Gets the multiset being decorated.
|
protected MultiSet |
SynchronizedMultiSet.decorated()
Gets the multiset being decorated.
|
static <E> MultiSet |
UnmodifiableMultiSet.unmodifiableMultiSet(MultiSet
Factory method to create an unmodifiable multiset.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> PredicatedMultiSet |
PredicatedMultiSet.predicatedMultiSet(MultiSet
Factory method to create a predicated (validating) multiset.
|
static <E> SynchronizedMultiSet |
SynchronizedMultiSet.synchronizedMultiSet(MultiSet
Factory method to create a synchronized multiset.
|
static <E> MultiSet |
UnmodifiableMultiSet.unmodifiableMultiSet(MultiSet
Factory method to create an unmodifiable multiset.
|
| Constructor and Description | |
|---|---|
AbstractMultiSetDecorator(MultiSet
Constructor that wraps (not copies).
|
|
PredicatedMultiSet(MultiSet
Constructor that wraps (not copies).
|
|
SynchronizedMultiSet(MultiSet
Constructor that wraps (not copies).
|
|
SynchronizedMultiSet(MultiSet
Constructor that wraps (not copies).
|