|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MultiValueMap<K,V>
Extension of the Map interface that stores multiple values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
void |
add(K key,
V value)
Add the given single value to the current list of values for the given key. |
V |
getFirst(K key)
Return the first value for the given key. |
void |
set(K key,
V value)
Set the given single value under the given key. |
void |
setAll(Map<K,V> values)
Set the given values under. |
Map<K,V> |
toSingleValueMap()
Returns the first values contained in this MultiValueMap. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
V getFirst(K key)
key - the key
null
void add(K key,
V value)
key - the keyvalue - the value to be added
void set(K key,
V value)
key - the keyvalue - the value to setvoid setAll(Map<K,V> values)
values - the values.Map<K,V> toSingleValueMap()
MultiValueMap.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||