Package org.rspeer.commons
Class Multimap<K,V>
- java.lang.Object
-
- org.rspeer.commons.Multimap<K,V>
-
public class Multimap<K,V> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontains(V value)booleancontainsKey(K key)Map<K,Set<V>>direct()Set<Map.Entry<K,Set<V>>>entrySet()Set<V>get(K key)Set<V>getOrDefault(K key, Set<V> def)voidifPresent(K key, Consumer<V> visitor)booleanisEmpty()Set<K>keySet()booleanput(K key, Collection<V> value)booleanput(K key, V value)Set<V>remove(K key)voidremoveValueIf(Predicate<V> test)Set<V>replace(K key, Collection<V> value)intsize()Multiset<V>valueSet()
-
-
-
Method Detail
-
put
public boolean put(K key, Collection<V> value)
-
clear
public void clear()
-
containsKey
public boolean containsKey(K key)
-
contains
public boolean contains(V value)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
replace
public Set<V> replace(K key, Collection<V> value)
-
-