public class MultiMap<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected HashMap<K,Set<V>> |
underlying |
Constructor and Description |
---|
MultiMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
Set<V> value)
Add all the bindings from
key to the elements of
values to this MultiMap. |
void |
add(K key,
V value) |
void |
addAll(MultiMap<K,V> map) |
boolean |
containsKey(K key) |
Set<V> |
getAll(K key) |
V |
getOne(K key) |
Iterator<K> |
keyIterator() |
Set<K> |
keySet() |
void |
putAll(Map<K,V> map)
Add all the entries from
map to this
MultiMap. |
void |
putAll(MultiMap<K,V> map)
Add all the entries from the MultiMap
map
to this MultiMap. |
void |
remove(String key) |
String |
toString() |
public boolean containsKey(K key)
public void add(K key, Set<V> value)
key
to the elements of
values
to this MultiMap.public void putAll(MultiMap<K,V> map)
map
to this MultiMap.public void remove(String key)
Copyright © 2014. All Rights Reserved.