Uses of Interface
org.apache.commons.collections4.MultiValuedMap
Packages that use MultiValuedMap
Package
Description
Interfaces and utilities shared across all packages.
Implements the
MultiValuedMap
interfaces.-
Uses of MultiValuedMap in org.apache.commons.collections4
Subinterfaces of MultiValuedMap in org.apache.commons.collections4Modifier and TypeInterfaceDescriptioninterface
ListValuedMap<K,
V> Defines a map that holds a list of values against each key.interface
SetValuedMap<K,
V> Defines a map that holds a set of values against each key.Fields in org.apache.commons.collections4 declared as MultiValuedMapModifier and TypeFieldDescriptionstatic final MultiValuedMap
MultiMapUtils.EMPTY_MULTI_VALUED_MAP
An emptyUnmodifiableMultiValuedMap
.Methods in org.apache.commons.collections4 that return MultiValuedMapModifier and TypeMethodDescriptionstatic <K,
V> MultiValuedMap <K, V> MultiMapUtils.emptyIfNull
(MultiValuedMap<K, V> map) Returns an immutable emptyMultiValuedMap
if the argument isnull
, or the argument itself otherwise.static <K,
V> MultiValuedMap <K, V> MultiMapUtils.emptyMultiValuedMap()
Returns immutable EMPTY_MULTI_VALUED_MAP with generic type safety.static <K,
V> MultiValuedMap <K, V> MultiMapUtils.transformedMultiValuedMap
(MultiValuedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) Returns aTransformedMultiValuedMap
backed by the given map.static <K,
V> MultiValuedMap <K, V> MultiMapUtils.unmodifiableMultiValuedMap
(MultiValuedMap<? extends K, ? extends V> map) Returns anUnmodifiableMultiValuedMap
backed by the given map.Methods in org.apache.commons.collections4 with parameters of type MultiValuedMapModifier and TypeMethodDescriptionstatic <K,
V> MultiValuedMap <K, V> MultiMapUtils.emptyIfNull
(MultiValuedMap<K, V> map) Returns an immutable emptyMultiValuedMap
if the argument isnull
, or the argument itself otherwise.static <K,
V> Collection <V> MultiMapUtils.getCollection
(MultiValuedMap<K, V> map, K key) Gets a Collection fromMultiValuedMap
in a null-safe manner.static <K,
V> Bag <V> MultiMapUtils.getValuesAsBag
(MultiValuedMap<K, V> map, K key) Gets a Bag fromMultiValuedMap
in a null-safe manner.static <K,
V> List <V> MultiMapUtils.getValuesAsList
(MultiValuedMap<K, V> map, K key) Gets a List fromMultiValuedMap
in a null-safe manner.static <K,
V> Set <V> MultiMapUtils.getValuesAsSet
(MultiValuedMap<K, V> map, K key) Gets a Set fromMultiValuedMap
in a null-safe manner.static boolean
MultiMapUtils.isEmpty
(MultiValuedMap<?, ?> map) Null-safe check if the specifiedMultiValuedMap
is empty.boolean
MultiValuedMap.putAll
(MultiValuedMap<? extends K, ? extends V> map) Copies all mappings from the specified map to this multivalued map (optional operation).static <K,
V> MultiValuedMap <K, V> MultiMapUtils.transformedMultiValuedMap
(MultiValuedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) Returns aTransformedMultiValuedMap
backed by the given map.static <K,
V> MultiValuedMap <K, V> MultiMapUtils.unmodifiableMultiValuedMap
(MultiValuedMap<? extends K, ? extends V> map) Returns anUnmodifiableMultiValuedMap
backed by the given map. -
Uses of MultiValuedMap in org.apache.commons.collections4.multimap
Classes in org.apache.commons.collections4.multimap that implement MultiValuedMapModifier and TypeClassDescriptionclass
Abstract implementation of theListValuedMap
interface to simplify the creation of subclass implementations.class
Abstract implementation of theMultiValuedMap
interface to simplify the creation of subclass implementations.class
Decorates anotherMultiValuedMap
to provide additional behavior.class
AbstractSetValuedMap<K,
V> Abstract implementation of theSetValuedMap
interface to simplify the creation of subclass implementations.class
class
Implements aListValuedMap
, using aLinkedHashMap
to provide data storage andArrayList
s as value collections.class
HashSetValuedHashMap<K,
V> class
Implements aSetValuedMap
, using aLinkedHashMap
to provide data storage andLinkedHashSet
s as value collections.class
Decorates anotherMultiValuedMap
to transform objects that are added.final class
Decorates anotherMultiValuedMap
to ensure it can't be altered.Methods in org.apache.commons.collections4.multimap that return MultiValuedMapModifier and TypeMethodDescriptionprotected MultiValuedMap
<K, V> AbstractMultiValuedMapDecorator.decorated()
The decorated multivalued map.Methods in org.apache.commons.collections4.multimap with parameters of type MultiValuedMapModifier and TypeMethodDescriptionboolean
AbstractMultiValuedMap.putAll
(MultiValuedMap<? extends K, ? extends V> map) Copies all of the mappings from the specified MultiValuedMap to this map.boolean
AbstractMultiValuedMapDecorator.putAll
(MultiValuedMap<? extends K, ? extends V> map) boolean
TransformedMultiValuedMap.putAll
(MultiValuedMap<? extends K, ? extends V> map) boolean
UnmodifiableMultiValuedMap.putAll
(MultiValuedMap<? extends K, ? extends V> map) static <K,
V> TransformedMultiValuedMap <K, V> TransformedMultiValuedMap.transformedMap
(MultiValuedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) Factory method to create a transforming MultiValuedMap that will transform existing contents of the specified map.static <K,
V> TransformedMultiValuedMap <K, V> TransformedMultiValuedMap.transformingMap
(MultiValuedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) Factory method to create a transforming MultiValuedMap.static <K,
V> UnmodifiableMultiValuedMap <K, V> UnmodifiableMultiValuedMap.unmodifiableMultiValuedMap
(MultiValuedMap<? extends K, ? extends V> map) Factory method to create an unmodifiable MultiValuedMap.Constructors in org.apache.commons.collections4.multimap with parameters of type MultiValuedMapModifierConstructorDescriptionprotected
Constructor that wraps (not copies).ArrayListValuedHashMap
(MultiValuedMap<? extends K, ? extends V> map) Creates an ArrayListValuedHashMap copying all the mappings of the given map.ArrayListValuedLinkedHashMap
(MultiValuedMap<? extends K, ? extends V> map) Creates an ArrayListValuedHashMap copying all the mappings of the given map.HashSetValuedHashMap
(MultiValuedMap<? extends K, ? extends V> map) Creates an HashSetValuedHashMap copying all the mappings of the given map.LinkedHashSetValuedLinkedHashMap
(MultiValuedMap<? extends K, ? extends V> map) Creates an LinkedHashSetValuedHashMap copying all the mappings of the given map.protected
TransformedMultiValuedMap
(MultiValuedMap<K, V> map, Transformer<? super K, ? extends K> keyTransformer, Transformer<? super V, ? extends V> valueTransformer) Constructor that wraps (not copies).