Uses of Interface
org.apache.commons.collections4.MultiValuedMap
-
Packages that use MultiValuedMap 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.multimap This package contains implementations of theMultiValuedMapinterfaces. -
-
Uses of MultiValuedMap in org.apache.commons.collections4
Subinterfaces of MultiValuedMap in org.apache.commons.collections4 Modifier and Type Interface Description interfaceListValuedMap<K,V>Defines a map that holds a list of values against each key.interfaceSetValuedMap<K,V>Defines a map that holds a set of values against each key.Fields in org.apache.commons.collections4 declared as MultiValuedMap Modifier and Type Field Description static MultiValuedMapMultiMapUtils. EMPTY_MULTI_VALUED_MAPAn emptyUnmodifiableMultiValuedMap.Methods in org.apache.commons.collections4 that return MultiValuedMap Modifier and Type Method Description static <K,V>
MultiValuedMap<K,V>MultiMapUtils. emptyIfNull(MultiValuedMap<K,V> map)Returns an immutable emptyMultiValuedMapif 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 aTransformedMultiValuedMapbacked by the given map.static <K,V>
MultiValuedMap<K,V>MultiMapUtils. unmodifiableMultiValuedMap(MultiValuedMap<? extends K,? extends V> map)Returns anUnmodifiableMultiValuedMapbacked by the given map.Methods in org.apache.commons.collections4 with parameters of type MultiValuedMap Modifier and Type Method Description static <K,V>
MultiValuedMap<K,V>MultiMapUtils. emptyIfNull(MultiValuedMap<K,V> map)Returns an immutable emptyMultiValuedMapif the argument isnull, or the argument itself otherwise.static <K,V>
java.util.Collection<V>MultiMapUtils. getCollection(MultiValuedMap<K,V> map, K key)Gets a Collection fromMultiValuedMapin a null-safe manner.static <K,V>
Bag<V>MultiMapUtils. getValuesAsBag(MultiValuedMap<K,V> map, K key)Gets a Bag fromMultiValuedMapin a null-safe manner.static <K,V>
java.util.List<V>MultiMapUtils. getValuesAsList(MultiValuedMap<K,V> map, K key)Gets a List fromMultiValuedMapin a null-safe manner.static <K,V>
java.util.Set<V>MultiMapUtils. getValuesAsSet(MultiValuedMap<K,V> map, K key)Gets a Set fromMultiValuedMapin a null-safe manner.static booleanMultiMapUtils. isEmpty(MultiValuedMap<?,?> map)Null-safe check if the specifiedMultiValuedMapis empty.booleanMultiValuedMap. putAll(MultiValuedMap<? extends K,? extends V> map)Copies all mappings from the specified map to this multi-valued 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 aTransformedMultiValuedMapbacked by the given map.static <K,V>
MultiValuedMap<K,V>MultiMapUtils. unmodifiableMultiValuedMap(MultiValuedMap<? extends K,? extends V> map)Returns anUnmodifiableMultiValuedMapbacked by the given map. -
Uses of MultiValuedMap in org.apache.commons.collections4.multimap
Classes in org.apache.commons.collections4.multimap that implement MultiValuedMap Modifier and Type Class Description classAbstractListValuedMap<K,V>Abstract implementation of theListValuedMapinterface to simplify the creation of subclass implementations.classAbstractMultiValuedMap<K,V>Abstract implementation of theMultiValuedMapinterface to simplify the creation of subclass implementations.classAbstractMultiValuedMapDecorator<K,V>Decorates anotherMultiValuedMapto provide additional behaviour.classAbstractSetValuedMap<K,V>Abstract implementation of theSetValuedMapinterface to simplify the creation of subclass implementations.classArrayListValuedHashMap<K,V>Implements aListValuedMap, using aHashMapto provide data storage andArrayLists as value collections.classHashSetValuedHashMap<K,V>Implements aSetValuedMap, using aHashMapto provide data storage andHashSets as value collections.classTransformedMultiValuedMap<K,V>Decorates anotherMultiValuedMapto transform objects that are added.classUnmodifiableMultiValuedMap<K,V>Decorates anotherMultiValuedMapto ensure it can't be altered.Methods in org.apache.commons.collections4.multimap that return MultiValuedMap Modifier and Type Method Description protected MultiValuedMap<K,V>AbstractMultiValuedMapDecorator. decorated()The decorated multi-valued map.Methods in org.apache.commons.collections4.multimap with parameters of type MultiValuedMap Modifier and Type Method Description booleanAbstractMultiValuedMap. putAll(MultiValuedMap<? extends K,? extends V> map)Copies all of the mappings from the specified MultiValuedMap to this map.booleanAbstractMultiValuedMapDecorator. putAll(MultiValuedMap<? extends K,? extends V> map)booleanTransformedMultiValuedMap. putAll(MultiValuedMap<? extends K,? extends V> map)booleanUnmodifiableMultiValuedMap. 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 MultiValuedMap Constructor Description AbstractMultiValuedMapDecorator(MultiValuedMap<K,V> map)Constructor that wraps (not copies).ArrayListValuedHashMap(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.TransformedMultiValuedMap(MultiValuedMap<K,V> map, Transformer<? super K,? extends K> keyTransformer, Transformer<? super V,? extends V> valueTransformer)Constructor that wraps (not copies).
-