Class MultimapSet<K,V>
java.lang.Object
org.greenrobot.essentials.collections.AbstractMultimap<K,V,Set<V>>
org.greenrobot.essentials.collections.MultimapSet<K,V>
Combines a Map with Set values to provide simple way to store multiple values for a key.
Like
Multimap
, but element values are stored in Sets.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.greenrobot.essentials.collections.AbstractMultimap
map
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MultimapSet
(Map<K, Set<V>> map, MultimapSet.SetType setType) -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> MultimapSet <K, V> create()
static <K,
V> MultimapSet <K, V> create
(MultimapSet.SetType setType) Methods inherited from class org.greenrobot.essentials.collections.AbstractMultimap
clear, containsElement, containsElement, containsKey, containsValue, countElements, countElements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, putElement, putElements, remove, removeElement, size, values, valuesElements
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
setType
-
-
Constructor Details
-
MultimapSet
-
-
Method Details
-
create
-
create
-
createNewCollection
- Specified by:
createNewCollection
in classAbstractMultimap<K,
V, Set<V>>
-