|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.util.DelegatingMultivaluedMap<K,V>
K - The type of keys in the map.V - The type of values in the lists in the map.public class DelegatingMultivaluedMap<K,V>
MultivaluedMap implementation that delegates to another instance.
Convenience class for MultivaluedMap enhancements that don't want to implement all methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
DelegatingMultivaluedMap(MultivaluedMap<K,V> delegate)
|
|
| 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. |
void |
clear()
|
boolean |
containsKey(Object o)
|
boolean |
containsValue(Object o)
|
Set<Map.Entry<K,List<V>>> |
entrySet()
|
boolean |
equals(Object o)
|
boolean |
equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap)
Compare the specified map with this map for equality modulo the order of values for each key. |
List<V> |
get(Object o)
|
V |
getFirst(K key)
A shortcut to get the first value of the supplied key. |
int |
hashCode()
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
List<V> |
put(K k,
List<V> vs)
|
void |
putAll(Map<? extends K,? extends List<V>> map)
|
void |
putSingle(K key,
V value)
Set the key's value to be a one item list consisting of the supplied value. |
List<V> |
remove(Object o)
|
int |
size()
|
Collection<List<V>> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingMultivaluedMap(MultivaluedMap<K,V> delegate)
| Method Detail |
|---|
public void addAll(K key,
V... newValues)
MultivaluedMapNullPointerException if the supplied array of values
is null.
addAll in interface MultivaluedMap<K,V>key - the key.newValues - the values to be added.
public void addAll(K key,
List<V> valueList)
MultivaluedMapNullPointerException if the
supplied array of values is null.
addAll in interface MultivaluedMap<K,V>key - the key.valueList - the list of values to be added.
public void addFirst(K key,
V value)
MultivaluedMap
addFirst in interface MultivaluedMap<K,V>key - the keyvalue - the value to be added.
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
public int size()
size in interface Map<K,List<V>>public boolean isEmpty()
isEmpty in interface Map<K,List<V>>public boolean containsKey(Object o)
containsKey in interface Map<K,List<V>>public boolean containsValue(Object o)
containsValue in interface Map<K,List<V>>public List<V> get(Object o)
get in interface Map<K,List<V>>
public List<V> put(K k,
List<V> vs)
put in interface Map<K,List<V>>public List<V> remove(Object o)
remove in interface Map<K,List<V>>public void putAll(Map<? extends K,? extends List<V>> map)
putAll in interface Map<K,List<V>>public void clear()
clear in interface Map<K,List<V>>public Set<K> keySet()
keySet in interface Map<K,List<V>>public Collection<List<V>> values()
values in interface Map<K,List<V>>public Set<Map.Entry<K,List<V>>> entrySet()
entrySet in interface Map<K,List<V>>public boolean equals(Object o)
equals in interface Map<K,List<V>>equals in class Objectpublic int hashCode()
hashCode in interface Map<K,List<V>>hashCode in class Objectpublic boolean equalsIgnoreValueOrder(MultivaluedMap<K,V> otherMap)
MultivaluedMap
equalsIgnoreValueOrder in interface MultivaluedMap<K,V>otherMap - map to be compared to this one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||