Package htsjdk.samtools.util
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>>
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ListMap
public ListMap()
-
-
Method Details
-
add
Adds a single value to the list stored under a key.
-