Class AbstractListValuedMap<K,V>

java.lang.Object
org.apache.commons.collections4.multimap.AbstractMultiValuedMap<K,V>
org.apache.commons.collections4.multimap.AbstractListValuedMap<K,V>
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
Version:
$Id: AbstractListValuedMap.java 1715695 2015-11-22 21:11:49Z tn $
  • 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