K - Type of the keys.
L - Type of the values.
public class CountingMultiValMap<K,L> extends Object
| Constructor and Description |
|---|
CountingMultiValMap()
|
public void add(K key1, L key2)
key1 - the first key
key2 - the seconds key
public 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()