org.springframework.util.MultiValueMap<K, V> |
Known Indirect Subclasses
HttpHeaders |
Represents HTTP request and response headers, mapping string header names to list of string values. |
LinkedMultiValueMap<K, V> |
Simple implementation of MultiValueMap that wraps a LinkedHashMap,
storing multiple values in a LinkedList. |
|
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
abstract
void
|
clear()
|
abstract
boolean
|
containsKey(Object arg0)
|
abstract
boolean
|
containsValue(Object arg0)
|
abstract
Set<Entry<K, V>>
|
entrySet()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
V
|
get(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
boolean
|
isEmpty()
|
abstract
Set<K>
|
keySet()
|
abstract
V
|
put(K arg0, V arg1)
|
abstract
void
|
putAll(Map<? extends K, ? extends V> arg0)
|
abstract
V
|
remove(Object arg0)
|
abstract
int
|
size()
|
abstract
Collection<V>
|
values()
|
|
Public Methods
public
abstract
void
add
(K key, V value)
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)
Return the first value for the given key.
Returns
- the first value for the specified key, or
null
public
abstract
void
set
(K key, V value)
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)
Set the given values under.
public
abstract
Map<K, V>
toSingleValueMap
()
Returns the first values contained in this MultiValueMap
.
Returns
- a single value representation of this map