K
- the type of the keysV
- the types of the elements of the value mulit-setspublic class KeyToMultiSet<K,V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<K,MultiSet<V>> |
map
The backing map.
|
Constructor and Description |
---|
KeyToMultiSet()
Creates a new, empty KeyToMultiSet.
|
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value) |
void |
addAll(K key,
java.util.Collection<? extends V> values) |
void |
addAll(java.util.Map<? extends K,? extends V> m) |
void |
clean() |
void |
clear() |
boolean |
contains(K obj) |
java.util.Set<V> |
getVariables(K key) |
boolean |
isEmpty() |
java.util.Set<K> |
keySet() |
void |
remove(K key) |
void |
remove(K key,
V value) |
void |
removeAllInstances(java.util.Set<V> values) |
int |
size() |
public void remove(K key)
public java.util.Set<K> keySet()
public boolean contains(K obj)
public void clean()
public void removeAllInstances(java.util.Set<V> values)
public void clear()
public int size()
public boolean isEmpty()