MultiValueMap

Extension of the {@code Map} interface that stores multiple values.

@author Arjen Poutsma

Members

Functions

add
void add(K key, V value)

Add the given single value to the current list of values for the given key. @param key the key @param value the value to be added

addAll
void addAll(K key, List!V values)

Add all the values of the given list to the current list of values for the given key. @param key they key @param values the values to be added @since 5.0

addAll
void addAll(Map!(K, List!V) values)

Add all the values of the given {@code MultiValueMap} to the current values. @param values the values to be added @since 5.0

getFirst
V getFirst(K key)

Return the first value for the given key. @param key the key @return the first value for the specified key, or {@code null} if none

set
void set(K key, V value)

Set the given single value under the given key. @param key the key @param value the value to set

setAll
void setAll(Map!(K, V) values)

Set the given values under. @param values the values.

toSingleValueMap
Map!(K, V) toSingleValueMap()

Returns the first values contained in this {@code MultiValueMap}. @return a single value representation of this map

Meta