|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,java.util.List<V>>
org.jboss.resteasy.specimpl.MultivaluedMapImpl<K,V>
public class MultivaluedMapImpl<K,V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MultivaluedMapImpl()
|
|
| 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 class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public MultivaluedMapImpl()
| Method Detail |
|---|
public void putSingle(K key,
V value)
MultivaluedMap
putSingle in interface MultivaluedMap<K,V>key - the keyvalue - the single value of the key
public void add(K key,
V value)
MultivaluedMap
add in interface MultivaluedMap<K,V>key - the keyvalue - the value to be added.public V getFirst(K key)
MultivaluedMap
getFirst in interface MultivaluedMap<K,V>key - the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||