public class HashMultiMap<K,V> extends AbstractMultiMap<K,V>
Constructor and Description |
---|
HashMultiMap() |
HashMultiMap(int initialSize) |
HashMultiMap(Map<K,Set<V>> m) |
HashMultiMap(MultiMap<K,V> m) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(V value) |
protected Map<K,Set<V>> |
createMap() |
protected Map<K,Set<V>> |
createMap(int initialSize) |
boolean |
equals(Object o) |
Set<V> |
get(K o) |
int |
hashCode() |
Set<K> |
keySet() |
protected Set<V> |
newSet() |
int |
numKeys() |
boolean |
put(K key,
V value) |
boolean |
putAll(K key,
Set<V> values) |
boolean |
remove(K key) |
boolean |
remove(K key,
V value) |
boolean |
removeAll(K key,
Set<V> values) |
int |
size()
Gets the number of keys in this MultiMap
|
Set<V> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public HashMultiMap()
public HashMultiMap(int initialSize)
public int numKeys()
public boolean containsKey(Object key)
public boolean containsValue(V value)
public boolean remove(K key)
public boolean equals(Object o)
public int hashCode()
public int size()
MultiMap
public void clear()