public class MultiValuedMap
extends java.util.HashMap<java.lang.String,java.util.List<java.lang.String>>
| Constructor and Description |
|---|
MultiValuedMap() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
optPut(java.lang.String key,
java.lang.String value)
Convenience method.
|
java.util.List<java.lang.String> |
put(java.lang.String key,
java.lang.String value)
Add the provided value to the list of values associated with this key
|
void |
putMap(java.util.Map<java.lang.String,java.lang.String> map)
Copies all of the mappings from the specified map into this map.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic java.util.List<java.lang.String> optPut(java.lang.String key,
java.lang.String value)
key - the key of which the values need to be updatedvalue - the value to be added when not NULLpublic java.util.List<java.lang.String> put(java.lang.String key,
java.lang.String value)
key - the keyvalue - the new (additional) value belonging to this key.public void putMap(java.util.Map<java.lang.String,java.lang.String> map)
map - mappings to be stored in this map