MultiValueMap.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MultiValueMap | |
| private transient Set | |
| private transient Set | |
| private static final long | |
| private transient Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(K
the key key, V the value to be added value)Implements org. |
| public void | addAll(K
they key key, List<? extends V> the values to be added values)Implements org. |
| public void | addAll(MultiValueMap<K, V>
the values to be added values)Implements org. MultiValueMap to the current values.
|
| public void | addIfAbsent(K
the key key, V the value to be added value)Overrides default org. Add the given value, only when the map does not
contain the given key.
|
| public void | clear()
Implements java. |
| public List | compute(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super List<V>, ? extends List<V>> the remapping function to compute a value remappingFunction)Overrides default java. null if there is no current mapping).
|
| public List | computeIfAbsent(K
key with which the specified value is to be associated key, Function<? super K, ? extends List<V>> the mapping function to compute a value mappingFunction)Overrides default java. null), attempts to compute its value using the given mapping
function and enters it into this map unless null.
|
| public List | computeIfPresent(K
key with which the specified value is to be associated key, BiFunction<? super K, ? super List<V>, ? extends List<V>> the remapping function to compute a value remappingFunction)Overrides default java. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(Object
object to be compared for equality with this map other)Overrides java. Implements java. |
| public void | forEach(BiConsumer<? super K, ? super List<V>>
The action to be performed for each entry action)Overrides default java. |
| public List | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public V | getFirst(K
the key key)Implements org. |
| public List | getOrDefault(Object
the key whose associated value is to be returned key, List<V> the default mapping of the key defaultValue)Overrides default java. defaultValue if this map contains no mapping for the key.
|
| public int | hashCode()
Overrides java. Implements java. |
| public boolean | |
| public Set | |
| public List | merge(K
key with which the resulting value is to be associated key, List<V> the non-null value to be merged with the existing value
associated with the key or, if no existing value or a null value
is associated with the key, to be associated with the key value, BiFunction<? super List<V>, ? super List<V>, ? extends List<V>> the remapping function to recompute a value if
present remappingFunction)Overrides default java. |
| public List | put(K
key with which the specified value is to be associated key, List<V> value to be associated with the specified key value)Implements java. |
| public void | putAll(Map<? extends K, ? extends List<V>>
mappings to be stored in this map m)Implements java. |
| public List | putIfAbsent(K
key with which the specified value is to be associated key, List<V> value to be associated with the specified key value)Overrides default java. null) associates it with the given value and returns
null, else returns the current value.
|
| public List | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| public boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Overrides default java. |
| public boolean | replace(K
key with which the specified value is associated key, List<V> value expected to be associated with the specified key oldValue, List<V> value to be associated with the specified key newValue)Overrides default java. |
| public List | replace(K
key with which the specified value is associated key, List<V> value to be associated with the specified key value)Overrides default java. |
| public void | replaceAll(BiFunction<? super K, ? super List<V>, ? extends List<V>>
the function to apply to each entry function)Overrides default java. |
| public void | set(K
the key key, V the value to set value)Implements org. |
| public void | setAll(Map<K, V>
the values. values)Implements org. |
| public int | |
| public Map | toSingleValueMap()
Implements org. Map with the first values contained in this MultiValueMap.
|
| public String | |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|