|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.server.rest.util.CaseInsensitiveMap<V>
public class CaseInsensitiveMap<V>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
CaseInsensitiveMap()
|
|
| Method Summary | |
|---|---|
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 |
addMultiple(String key,
Collection<V> value)
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public CaseInsensitiveMap()
| Method Detail |
|---|
public void putSingle(String key,
V value)
MultivaluedMap
putSingle in interface MultivaluedMap<String,V>key - the keyvalue - the single value of the key
public 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 key
public final int size()
size in interface Map<String,List<V>>public boolean isEmpty()
isEmpty in interface Map<String,List<V>>public boolean containsKey(Object o)
containsKey in interface Map<String,List<V>>public boolean containsValue(Object o)
containsValue in interface Map<String,List<V>>public List<V> get(Object o)
get in interface Map<String,List<V>>
public List<V> put(String s,
List<V> vs)
put in interface Map<String,List<V>>public List<V> remove(Object o)
remove in interface Map<String,List<V>>public final void putAll(Map otherMap)
putAll in interface Map<String,List<V>>public void clear()
clear in interface Map<String,List<V>>public Set<String> keySet()
keySet in interface Map<String,List<V>>public Collection<List<V>> values()
values in interface Map<String,List<V>>public Set<Map.Entry<String,List<V>>> entrySet()
entrySet 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)
MultivaluedMap
addFirst in interface MultivaluedMap<String,V>key - the keyvalue - the value to be added.public boolean equalsIgnoreValueOrder(MultivaluedMap<String,V> omap)
MultivaluedMap
equalsIgnoreValueOrder in interface MultivaluedMap<String,V>omap - map to be compared to this one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||