Package org.apache.commons.collections4.multimap
package org.apache.commons.collections4.multimap
Implements the
MultiValuedMap interfaces.
A MultiValuedMap holds a collection of values against each key.
The following implementations are provided in the package:
- ArrayListValuedHashMap - ListValuedMap implementation using a HashMap/ArrayList
- HashSetValuedHashMap - SetValuedMap implementation using a HashMap/HashSet
The following decorators are provided in the package:
- Transformed - transforms elements added to the MultiValuedMap
- Unmodifiable - ensures the collection cannot be altered
-
ClassesClassDescriptionAbstract implementation of the
ListValuedMapinterface to simplify the creation of subclass implementations.Abstract implementation of theMultiValuedMapinterface to simplify the creation of subclass implementations.Decorates anotherMultiValuedMapto provide additional behavior.AbstractSetValuedMap<K,V> Abstract implementation of theSetValuedMapinterface to simplify the creation of subclass implementations.Implements aListValuedMap, using aLinkedHashMapto provide data storage andArrayLists as value collections.HashSetValuedHashMap<K,V> Implements aSetValuedMap, using aLinkedHashMapto provide data storage andLinkedHashSets as value collections.Decorates anotherMultiValuedMapto transform objects that are added.Decorates anotherMultiValuedMapto ensure it can't be altered.