|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public 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 |
---|
java.util.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. |
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 keyvoid add(K key, V value)
key
- the keyvalue
- the value to be added.V getFirst(K key)
key
- the key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34