Package io.inversion.utils
Class ListMap<K,V>
java.lang.Object
io.inversion.utils.ListMap<K,V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(K key) booleancontainsMapping(K key, V value) Overridden to return empty list instead of nullkeySet()voidvoidvoidputAll(K key, Collection<V> values) voidRemoves the value from the list if thhe list existsintsize()values()
-
Field Details
-
map
-
-
Constructor Details
-
ListMap
public ListMap()
-
-
Method Details
-
size
public int size() -
clear
public void clear() -
containsKey
-
containsMapping
-
putAll
-
putAll
-
putAll
-
put
-
keySet
-
values
-
remove
-
remove
Removes the value from the list if thhe list exists- Parameters:
key-value-
-
get
Overridden to return empty list instead of null
-