Package com.gengoai.collection.multimap
Class SetMultimap<K,V>
- java.lang.Object
-
- com.gengoai.collection.multimap.BaseMultimap<K,V,Set<V>>
-
- com.gengoai.collection.multimap.SetMultimap<K,V>
-
- Type Parameters:
K
- the type parameterV
- the type parameter
- All Implemented Interfaces:
Multimap<K,V>
,Serializable
- Direct Known Subclasses:
HashSetMultimap
,LinkedHashSetMultimap
,TreeSetMultimap
public abstract class SetMultimap<K,V> extends BaseMultimap<K,V,Set<V>>
Multimap which stores values in a set- 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
SetMultimap(SerializableSupplier<Set<V>> setSupplier)
Instantiates a new Set multimap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<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
-
SetMultimap
protected SetMultimap(SerializableSupplier<Set<V>> setSupplier)
Instantiates a new Set multimap.- Parameters:
setSupplier
- the set supplier
-
-