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 SummaryAll 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- 
putpublic boolean put(K key, Collection<V> value) 
 - 
clearpublic void clear() 
 - 
containsKeypublic boolean containsKey(K key) 
 - 
containspublic boolean contains(V value) 
 - 
sizepublic int size() 
 - 
isEmptypublic boolean isEmpty() 
 - 
replacepublic Set<V> replace(K key, Collection<V> value) 
 
- 
 
-