K
- the key typeV
- the value typepublic class MultiValueMap<K,V>
extends java.lang.Object
There is an efficient lookup method to retrieve all values of all keys.
Constructor and Description |
---|
MultiValueMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected java.util.Map<K,java.util.Set<V>> |
createKeyMap() |
protected java.util.Set<V> |
createValueSet() |
java.util.Set<java.util.Map.Entry<K,java.util.Set<V>>> |
entrySet() |
java.util.Set<V> |
get(K key) |
java.util.Set<V> |
getValues()
Returns a Set with all values of all keys.
|
java.util.Set<K> |
keySet() |
void |
put(K key,
V value) |
void |
putAll(K key,
java.util.Set<V> values) |
void |
putAll(java.util.Set<K> keys,
java.util.Set<V> values) |
void |
putAll(java.util.Set<K> key,
V value) |
boolean |
remove(K key,
V value) |
int |
size() |
java.util.Collection<java.util.Set<V>> |
values() |
protected java.util.Set<V> createValueSet()
public int size()
public java.util.Set<K> keySet()
public java.util.Collection<java.util.Set<V>> values()
public java.util.Set<V> getValues()
public void clear()