public class MultiMap<K,V>
extends java.lang.Object
Constructor and Description |
---|
MultiMap()
Creates an empty MultiMap.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(K key)
Returns true if this map contains a mapping for the specified
key.
|
boolean |
containsPair(K key,
V value)
Returns true if this map maps the specified key to the specified
value.
|
void |
put(K key,
V value)
Associates the specified value with the specified key in this multi-map.
|
void |
remove(java.lang.Object key)
Removes all the mappings for this key from this map if it is present.
|
public boolean containsKey(K key)
public boolean containsPair(K key, V value)
public void put(K key, V value)
public void remove(java.lang.Object key)