Package com.gengoai.collection.multimap
Class ListMultimap<K,V>
- java.lang.Object
-
- com.gengoai.collection.multimap.BaseMultimap<K,V,List<V>>
-
- com.gengoai.collection.multimap.ListMultimap<K,V>
-
- Type Parameters:
K
- the type parameterV
- the type parameter
- All Implemented Interfaces:
Multimap<K,V>
,Serializable
- Direct Known Subclasses:
ArrayListMultimap
,LinkedListMultimap
public abstract class ListMultimap<K,V> extends BaseMultimap<K,V,List<V>>
Multimap which stores values in a list- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.gengoai.collection.multimap.BaseMultimap
map
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ListMultimap(SerializableSupplier<List<V>> listSupplier)
Instantiates a new List multimap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<V>
get(Object key)
Gets the values mapped to by the given key.-
Methods inherited from class com.gengoai.collection.multimap.BaseMultimap
asMap, equals, hashCode, removeAll, replace, toString
-
-
-
-
Constructor Detail
-
ListMultimap
protected ListMultimap(SerializableSupplier<List<V>> listSupplier)
Instantiates a new List multimap.- Parameters:
listSupplier
- the list supplier
-
-