Package com.googlecode.objectify.util
Class MultimapList<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,List<V>>
-
- com.googlecode.objectify.util.MultimapList<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,List<V>>
public class MultimapList<K,V> extends HashMap<K,List<V>>
Multimap that stores values in an ArrayList. It's not worth pulling in a guava dependency just for this one class.- Author:
- Jeff Schnitzer
- See Also:
- Serialized Form
-
-
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 Constructor Description MultimapList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(K key, V value)
Adds a value to the set associated with the key.-
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
-
-