K
- Type of the keys.L
- Type of the values.public class CountingMultiValMap<K,L> extends Object
Constructor and Description |
---|
CountingMultiValMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(K key1,
L key2)
Add the tag (key1, key2) to the MultiValMap.
|
Map<L,Integer> |
get(K key) |
Set<L> |
getForKey(K key) |
void |
remove(K key1,
L key2)
Remove the tag (key1, key2) from the MultiValMap.
|
Collection<L> |
values() |
public void add(K key1, L key2)
key1
- the first keykey2
- the seconds keypublic Set<L> getForKey(K key)
key
- the key for which to determine all associated values.key
: { v |
(key,v) is present in the MultiValMap }public Map<L,Integer> get(K key)
key
- the key for which to determine the association map.public void remove(K key1, L key2)
key1
- the first key.key2
- the seconds key.public Collection<L> values()