K - keys type.
V - values type.
public interface MultiValMap<K,V> | Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key)
Find out whether the given key has any values associated.
|
Collection |
get(K key)
Retrieve a collection of values associated with key.
|
Collection |
keys()
Get a collection of associated keys.
|
void |
put(K key, Collection
Associate all value with this key.
|
void |
put(K key, V value)
Associate value with key.
|
void |
remove(K key, Collection
Remove all given values from the key.
|
void |
remove(K key, V value)
Remove this value from the key.
|
void |
removeAll(K key)
Remove all values associated with this key.
|
int |
size()
Get the number of keys in this map.
|
void put(K key, V value)
key - the key to add.
value - the associated value.
void put(K key, Collection<V> values)
key - a key.
values - associated values.
void remove(K key, V value)
key - the key to remove the value from.
value - the value to remove.
void remove(K key, Collection<V> values)
key - the key to remove values from.
values - the value to remove.
void removeAll(K key)
key - the key to remove all values from.
Collection<V> get(K key)
key - the key to look up.
boolean containsKey(K key)
key - the key to look up.
Collection<K> keys()
int size()