| 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 the
MultiValuedMap interfaces.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ListValuedMap<K
Defines a map that holds a list of values against each key.
|
interface |
SetValuedMap<K
Defines a map that holds a set of values against each key.
|
| Modifier and Type | Field and Description |
|---|---|
static MultiValuedMap |
MultiMapUtils.EMPTY_MULTI_VALUED_MAP
An empty
UnmodifiableMultiValuedMap.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
MultiMapUtils.emptyIfNull(MultiValuedMap
Returns an immutable empty
MultiValuedMap if the argument is
null, or the argument itself otherwise.
|
static <K |
MultiMapUtils.emptyMultiValuedMap()
Returns immutable EMPTY_MULTI_VALUED_MAP with generic type safety.
|
static <K |
MultiMapUtils.transformedMultiValuedMap(MultiValuedMap
Returns a
TransformedMultiValuedMap backed by the given map.
|
static <K |
MultiMapUtils.unmodifiableMultiValuedMap(MultiValuedMap
Returns an
UnmodifiableMultiValuedMap backed by the given map.
|
| Modifier and Type | Method and Description |
|---|---|
static <K |
MultiMapUtils.emptyIfNull(MultiValuedMap
Returns an immutable empty
MultiValuedMap if the argument is
null, or the argument itself otherwise.
|
static <K |
MultiMapUtils.getCollection(MultiValuedMap
Gets a Collection from
MultiValuedMap in a null-safe manner.
|
static <K |
MultiMapUtils.getValuesAsBag(MultiValuedMap
Gets a Bag from
MultiValuedMap in a null-safe manner.
|
static <K |
MultiMapUtils.getValuesAsList(MultiValuedMap
Gets a List from
MultiValuedMap in a null-safe manner.
|
static <K |
MultiMapUtils.getValuesAsSet(MultiValuedMap
Gets a Set from
MultiValuedMap in a null-safe manner.
|
static boolean |
MultiMapUtils.isEmpty(MultiValuedMap
Null-safe check if the specified
MultiValuedMap is empty.
|
boolean |
MultiValuedMap.putAll(MultiValuedMap
Copies all mappings from the specified map to this multi-valued map (optional operation).
|
static <K |
MultiMapUtils.transformedMultiValuedMap(MultiValuedMap
Returns a
TransformedMultiValuedMap backed by the given map.
|
static <K |
MultiMapUtils.unmodifiableMultiValuedMap(MultiValuedMap
Returns an
UnmodifiableMultiValuedMap backed by the given map.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractListValuedMap<K
Abstract implementation of the
ListValuedMap interface to simplify the creation of subclass implementations.
|
class |
AbstractMultiValuedMap<K
Abstract implementation of the
MultiValuedMap interface to simplify the creation of subclass implementations.
|
class |
AbstractMultiValuedMapDecorator<K
Decorates another
MultiValuedMap to provide additional behaviour.
|
class |
AbstractSetValuedMap<K
Abstract implementation of the
SetValuedMap interface to simplify the creation of subclass implementations.
|
class |
ArrayListValuedHashMap<K
|
class |
HashSetValuedHashMap<K
|
class |
TransformedMultiValuedMap<K
Decorates another
MultiValuedMap to transform objects that are added.
|
class |
UnmodifiableMultiValuedMap<K
Decorates another
MultiValuedMap to ensure it can't be altered.
|
| Modifier and Type | Method and Description |
|---|---|
protected MultiValuedMap |
AbstractMultiValuedMapDecorator.decorated()
The decorated multi-valued map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractMultiValuedMap.putAll(MultiValuedMap
Copies all of the mappings from the specified MultiValuedMap to this map.
|
boolean |
UnmodifiableMultiValuedMap.putAll(MultiValuedMap
|
boolean |
AbstractMultiValuedMapDecorator.putAll(MultiValuedMap
|
boolean |
TransformedMultiValuedMap.putAll(MultiValuedMap
|
static <K |
TransformedMultiValuedMap.transformedMap(MultiValuedMap
Factory method to create a transforming MultiValuedMap that will transform existing contents of the specified map.
|
static <K |
TransformedMultiValuedMap.transformingMap(MultiValuedMap
Factory method to create a transforming MultiValuedMap.
|
static <K |
UnmodifiableMultiValuedMap.unmodifiableMultiValuedMap(MultiValuedMap
Factory method to create an unmodifiable MultiValuedMap.
|
| Constructor and Description | |
|---|---|
AbstractMultiValuedMapDecorator(MultiValuedMap
Constructor that wraps (not copies).
|
|
ArrayListValuedHashMap(MultiValuedMap
Creates an ArrayListValuedHashMap copying all the mappings of the given map.
|
|
HashSetValuedHashMap(MultiValuedMap
Creates an HashSetValuedHashMap copying all the mappings of the given map.
|
|
TransformedMultiValuedMap(MultiValuedMap
Constructor that wraps (not copies).
|