public class MultivaluedMapContext<K,V> extends MapContext<K,List<V>>
Modifier and Type | Field and Description |
---|---|
static String |
module |
contexts
Constructor and Description |
---|
MultivaluedMapContext()
Create a multi-value map initialized with one context
|
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value)
Associate
key with the single value value . |
V |
getFirst(Object key)
Get the first value contained in the list of values associated with
key . |
void |
putSingle(K key,
V value)
Associate
key with the single value value . |
addToBottom, clear, containsKey, containsValue, entrySet, get, get, isEmpty, keySet, pop, push, push, put, putAll, remove, size, toString, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String module
public MultivaluedMapContext()
public void putSingle(K key, V value)
key
with the single value value
.
If other values are already associated with key
then override them.key
- the key to associate value
withvalue
- the value to add to the contextpublic void add(K key, V value)
key
with the single value value
.
If other values are already associated with key
,
then add value
to them.key
- the key to associate value
withvalue
- the value to add to the context