Class AbstractListValuedMap<K,V>

java.lang.Object
org.apache.commons.collections4.multimap.AbstractMultiValuedMap<K,V>
org.apache.commons.collections4.multimap.AbstractListValuedMap<K,V>
Type Parameters:
K - the type of the keys in this map
V - the type of the values in this map
All Implemented Interfaces:
ListValuedMap<K,V>, MultiValuedMap<K,V>
Direct Known Subclasses:
ArrayListValuedHashMap

public abstract class AbstractListValuedMap<K,V> extends AbstractMultiValuedMap<K,V> implements ListValuedMap<K,V>
Abstract implementation of the ListValuedMap interface to simplify the creation of subclass implementations.

Subclasses specify a Map implementation to use as the internal storage and the List implementation to use as values.

Since:
4.1
  • Constructor Details

    • AbstractListValuedMap

      protected AbstractListValuedMap()
      Constructor needed for subclass serialisation.
    • AbstractListValuedMap

      protected AbstractListValuedMap(Map<K,? extends List<V>> map)
      A constructor that wraps, not copies
      Parameters:
      map - the map to wrap, must not be null
      Throws:
      NullPointerException - if the map is null
  • Method Details