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 AbstractMultimap
map -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMultimapSet(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 AbstractMultimap
clear, containsElement, containsElement, containsKey, containsValue, countElements, countElements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, putElement, putElements, remove, removeElement, size, values, valuesElementsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
createNewCollectionin classAbstractMultimap<K,V, Set<V>>
-