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 void
clear()
boolean
contains(V value)
boolean
containsKey(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)
void
ifPresent(K key, Consumer<V> visitor)
boolean
isEmpty()
Set<K>
keySet()
boolean
put(K key, Collection<V> value)
boolean
put(K key, V value)
Set<V>
remove(K key)
void
removeValueIf(Predicate<V> test)
Set<V>
replace(K key, Collection<V> value)
int
size()
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)
-
-