Package io.inversion.utils
Class ListMap<K,V>
- java.lang.Object
-
- io.inversion.utils.ListMap<K,V>
-
public class ListMap<K,V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ListMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(K key)booleancontainsMapping(K key, V value)java.util.List<V>get(K key)Overridden to return empty list instead of nulljava.util.Set<K>keySet()java.lang.Objectput(K key, V value)voidputAll(ListMap listMap)voidputAll(java.util.Map map)voidputAll(K key, java.util.Collection<V> values)java.util.List<V>remove(K key)voidremove(K key, V value)Removes the value from the list if thhe list existsintsize()java.util.Collection<V>values()
-
-
-
Method Detail
-
size
public int size()
-
clear
public void clear()
-
containsKey
public boolean containsKey(K key)
-
putAll
public void putAll(java.util.Map map)
-
putAll
public void putAll(ListMap listMap)
-
keySet
public java.util.Set<K> keySet()
-
values
public java.util.Collection<V> values()
-
remove
public void remove(K key, V value)
Removes the value from the list if thhe list exists- Parameters:
key-value-
-
-