public class CaseInsensitiveMap<V> extends Object implements MultivaluedMap<String,V>, Serializable
| Constructor and Description |
|---|
CaseInsensitiveMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
V value)
Add a value to the current list of values for the supplied key.
|
void |
addAll(String 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(String key,
V... newValues)
Add multiple values to the current list of values for the supplied key.
|
void |
addFirst(String 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<String,List<V>>> |
entrySet() |
boolean |
equalsIgnoreValueOrder(MultivaluedMap<String,V> omap)
Compare the specified map with this map for equality modulo the order
of values for each key.
|
List<V> |
get(Object o) |
V |
getFirst(String key)
A shortcut to get the first value of the supplied key.
|
boolean |
isEmpty() |
Set<String> |
keySet() |
List<V> |
put(String s,
List<V> vs) |
void |
putAll(Map otherMap) |
void |
putSingle(String 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() |
public void putSingle(String key, V value)
MultivaluedMapputSingle in interface MultivaluedMap<String,V>key - the keyvalue - the single value of the keypublic void add(String key, V value)
MultivaluedMapadd in interface MultivaluedMap<String,V>key - the keyvalue - the value to be added.public V getFirst(String key)
MultivaluedMapgetFirst in interface MultivaluedMap<String,V>key - the keypublic boolean containsKey(Object o)
containsKey in interface Map<String,List<V>>public boolean containsValue(Object o)
containsValue in interface Map<String,List<V>>public void addAll(String key, V... newValues)
MultivaluedMapNullPointerException if the supplied array of values
is null.addAll in interface MultivaluedMap<String,V>key - the key.newValues - the values to be added.public void addAll(String key, List<V> valueList)
MultivaluedMapNullPointerException if the
supplied array of values is null.addAll in interface MultivaluedMap<String,V>key - the key.valueList - the list of values to be added.public void addFirst(String key, V value)
MultivaluedMapaddFirst in interface MultivaluedMap<String,V>key - the keyvalue - the value to be added.public boolean equalsIgnoreValueOrder(MultivaluedMap<String,V> omap)
MultivaluedMapequalsIgnoreValueOrder in interface MultivaluedMap<String,V>omap - map to be compared to this one.Copyright © 2013. All Rights Reserved.