Map interface that stores multiple values.
| Modifier and Type | Method and Description |
|---|---|
| public void | add(K
the key key, V the value to be added value)Add the given single value to the current list of values for the given key. |
| public void | |
| public void | addAll(MultiValueMap<K, V>
the values to be added values)Add all the values of the given |
| public default void | addIfAbsent(K
the key key, V the value to be added value)
|
| public V | Returns: the first value for the specified key, ornull if nonethe key key)Return the first value for the given key. |
| public void | |
| public void | |
| public Map | Returns: a single value representation of this mapReturn a |
| add | back to summary |
|---|---|
| public void add(K key, V value) Add the given single value to the current list of values for the given key.
| |
| addAll | back to summary |
|---|---|
| public void addAll(K key, List<? extends V> values) Add all the values of the given list to the current list of values for the given key.
| |
| addAll | back to summary |
|---|---|
| public void addAll(MultiValueMap<K, V> values) Add all the values of the given
| |
| addIfAbsent | back to summary |
|---|---|
| public default void addIfAbsent(K key, V value)
| |
| getFirst | back to summary |
|---|---|
| public V getFirst(K key) Return the first value for the given key.
| |
| set | back to summary |
|---|---|
| public void set(K key, V value) Set the given single value under the given key.
| |
| setAll | back to summary |
|---|---|
| public void setAll(Map<K, V> values) Set the given values under.
| |
| toSingleValueMap | back to summary |
|---|---|
| public Map Return a
| |