Class ListMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,List<V>>
htsjdk.samtools.util.ListMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,List<V>>

public class ListMap<K,V> extends HashMap<K,List<V>>
A Map class that holds a list of entries under each key instead of a single entry, and provides utility methods for adding an entry under a key.
See Also:
  • Constructor Details

    • ListMap

      public ListMap()
  • Method Details

    • add

      public void add(K key, V value)
      Adds a single value to the list stored under a key.