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 |
addMultiple(String key,
Collection<V> value) |
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<String,List<V>>> |
entrySet() |
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)
MultivaluedMap
putSingle
in interface MultivaluedMap<String,V>
key
- the keyvalue
- the single value of the keypublic void add(String key, V value)
MultivaluedMap
add
in interface MultivaluedMap<String,V>
key
- the keyvalue
- the value to be added.public void addMultiple(String key, Collection<V> value)
public V getFirst(String key)
MultivaluedMap
getFirst
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>>
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.