V
- the type of values.public class StringKeyIgnoreCaseMultivaluedMap<V> extends KeyComparatorLinkedHashMap<java.lang.String,java.util.List<V>> implements MultivaluedMap<java.lang.String,V>
MultivaluedMap
where keys are instances of
String and are compared ignoring case.Constructor and Description |
---|
StringKeyIgnoreCaseMultivaluedMap() |
StringKeyIgnoreCaseMultivaluedMap(StringKeyIgnoreCaseMultivaluedMap<V> that) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String key,
V value)
Add a value to the current list of values for the supplied key.
|
V |
getFirst(java.lang.String key)
A shortcut to get the first value of the supplied key.
|
protected java.util.List<V> |
getList(java.lang.String key) |
void |
putSingle(java.lang.String key,
V value)
Set the key's value to be a one item list consisting of the supplied value.
|
clear, containsValue, get, removeEldestEntry
clone, containsKey, entrySet, getDEFAULT_INITIAL_CAPACITY, getModCount, isEmpty, put, putAll, remove, size
public StringKeyIgnoreCaseMultivaluedMap()
public StringKeyIgnoreCaseMultivaluedMap(StringKeyIgnoreCaseMultivaluedMap<V> that)
public void putSingle(java.lang.String key, V value)
MultivaluedMap
putSingle
in interface MultivaluedMap<java.lang.String,V>
key
- the keyvalue
- the single value of the keypublic void add(java.lang.String key, V value)
MultivaluedMap
add
in interface MultivaluedMap<java.lang.String,V>
key
- the keyvalue
- the value to be added.public V getFirst(java.lang.String key)
MultivaluedMap
getFirst
in interface MultivaluedMap<java.lang.String,V>
key
- the keyprotected java.util.List<V> getList(java.lang.String key)
Copyright © 2016 Oracle Corporation. All Rights Reserved.