Uses of Interface
org.apache.commons.collections4.MultiSet
Package
Description
Interfaces and utilities shared across all packages.
Implementations of the
Collection
interface.Implements the
MultiValuedMap
interfaces.Implements the
MultiSet
interface.-
Uses of MultiSet in org.apache.commons.collections4
Modifier and TypeFieldDescriptionstatic final MultiSet
MultiSetUtils.EMPTY_MULTISET
An empty unmodifiable multiset.Modifier and TypeMethodDescriptionstatic <E> MultiSet<E>
MultiSetUtils.emptyMultiSet()
Gets an emptyMultiSet
.MultiValuedMap.keys()
Returns aMultiSet
view of the keys contained in this multivalued map.static <E> MultiSet<E>
MultiSetUtils.predicatedMultiSet
(MultiSet<E> multiset, Predicate<? super E> predicate) Returns a predicated (validating) multiset backed by the given multiset.static <E> MultiSet<E>
MultiSetUtils.synchronizedMultiSet
(MultiSet<E> multiset) Returns a synchronized (thread-safe) multiset backed by the given multiset.static <E> MultiSet<E>
MultiSetUtils.unmodifiableMultiSet
(MultiSet<? extends E> multiset) Returns an unmodifiable view of the given multiset.Modifier and TypeMethodDescriptionstatic <E> MultiSet<E>
MultiSetUtils.predicatedMultiSet
(MultiSet<E> multiset, Predicate<? super E> predicate) Returns a predicated (validating) multiset backed by the given multiset.static <E> MultiSet<E>
MultiSetUtils.synchronizedMultiSet
(MultiSet<E> multiset) Returns a synchronized (thread-safe) multiset backed by the given multiset.static <E> MultiSet<E>
MultiSetUtils.unmodifiableMultiSet
(MultiSet<? extends E> multiset) Returns an unmodifiable view of the given multiset. -
Uses of MultiSet in org.apache.commons.collections4.collection
Modifier and TypeMethodDescriptionPredicatedCollection.Builder.createPredicatedMultiSet()
Create a new predicated multiset filled with the accepted elements.PredicatedCollection.Builder.createPredicatedMultiSet
(MultiSet<E> multiset) Decorates the given multiset with validating behavior using the predicate.Modifier and TypeMethodDescriptionPredicatedCollection.Builder.createPredicatedMultiSet
(MultiSet<E> multiset) Decorates the given multiset with validating behavior using the predicate. -
Uses of MultiSet in org.apache.commons.collections4.multimap
-
Uses of MultiSet in org.apache.commons.collections4.multiset
Modifier and TypeClassDescriptionclass
Abstract implementation of theMultiSet
interface to simplify the creation of subclass implementations.class
Abstract implementation of theMultiSet
interface to simplify the creation of subclass implementations.class
Decorates anotherMultiSet
to provide additional behavior.class
HashMultiSet<E>
ImplementsMultiSet
, using aHashMap
to provide the data storage.class
Decorates anotherMultiSet
to validate that additions match a specified predicate.class
Decorates anotherMultiSet
to synchronize its behavior for a multithreaded environment.final class
Decorates anotherMultiSet
to ensure it can't be altered.Modifier and TypeMethodDescriptionAbstractMultiSetDecorator.decorated()
Gets the multiset being decorated.PredicatedMultiSet.decorated()
Gets the decorated multiset.SynchronizedMultiSet.decorated()
Gets the multiset being decorated.static <E> MultiSet<E>
UnmodifiableMultiSet.unmodifiableMultiSet
(MultiSet<? extends E> multiset) Factory method to create an unmodifiable multiset.Modifier and TypeMethodDescriptionstatic <E> PredicatedMultiSet<E>
PredicatedMultiSet.predicatedMultiSet
(MultiSet<E> multiset, Predicate<? super E> predicate) Factory method to create a predicated (validating) multiset.static <E> SynchronizedMultiSet<E>
SynchronizedMultiSet.synchronizedMultiSet
(MultiSet<E> multiset) Factory method to create a synchronized multiset.static <E> MultiSet<E>
UnmodifiableMultiSet.unmodifiableMultiSet
(MultiSet<? extends E> multiset) Factory method to create an unmodifiable multiset.ModifierConstructorDescriptionprotected
AbstractMultiSetDecorator
(MultiSet<E> multiset) Constructor that wraps (not copies).protected
PredicatedMultiSet
(MultiSet<E> multiset, Predicate<? super E> predicate) Constructor that wraps (not copies).protected
SynchronizedMultiSet
(MultiSet<E> multiset) Constructor that wraps (not copies).protected
SynchronizedMultiSet
(MultiSet<E> multiset, Object lock) Constructor that wraps (not copies).