public interface

MultiValueMap

implements Map<K, V>
org.springframework.util.MultiValueMap<K, V>
Known Indirect Subclasses

Class Overview

Extension of the Map interface that stores multiple values.

Summary

Public Methods
abstract void add(K key, V value)
Add the given single value to the current list of values for the given key.
abstract V getFirst(K key)
Return the first value for the given key.
abstract void set(K key, V value)
Set the given single value under the given key.
abstract void setAll(Map<K, V> values)
Set the given values under.
abstract Map<K, V> toSingleValueMap()
Returns the first values contained in this MultiValueMap.
[Expand]
Inherited Methods
From interface java.util.Map

Public Methods

public abstract void add (K key, V value)

Also: SpringCore

Add the given single value to the current list of values for the given key.

Parameters
key the key
value the value to be added

public abstract V getFirst (K key)

Also: SpringCore

Return the first value for the given key.

Parameters
key the key
Returns
  • the first value for the specified key, or null

public abstract void set (K key, V value)

Also: SpringCore

Set the given single value under the given key.

Parameters
key the key
value the value to set

public abstract void setAll (Map<K, V> values)

Also: SpringCore

Set the given values under.

Parameters
values the values.

public abstract Map<K, V> toSingleValueMap ()

Also: SpringCore

Returns the first values contained in this MultiValueMap.

Returns
  • a single value representation of this map