|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys maintained by this mapV - the type of mapped valuespublic interface MultivaluedMap<K,V>
A map of key-values pairs. Each key can have zero or more 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 a value to the current list of values for the supplied key. |
void |
addAll(K key,
List<V> valueList)
Add all the values from the supplied value list to the current list of values for the supplied key. |
void |
addAll(K key,
V... newValues)
Add multiple values to the current list of values for the supplied key. |
void |
addFirst(K key,
V value)
Add a value to the first position in the current list of values for the supplied key. |
boolean |
equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap)
Compare the specified map with this map for equality modulo the order of values for each key. |
V |
getFirst(K key)
A shortcut to get the first value of the supplied key. |
void |
putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
void putSingle(K key,
V value)
key - the keyvalue - the single value of the key
void add(K key,
V value)
key - the keyvalue - the value to be added.V getFirst(K key)
key - the key
void addAll(K key,
V... newValues)
NullPointerException if the supplied array of values
is null.
key - the key.newValues - the values to be added.
NullPointerException - if the supplied array of new values is null.
void addAll(K key,
List<V> valueList)
NullPointerException if the
supplied array of values is null.
key - the key.valueList - the list of values to be added.
NullPointerException - if the supplied value list is null.
void addFirst(K key,
V value)
key - the keyvalue - the value to be added.boolean equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap)
otherMap - map to be compared to this one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||