| java.lang.Object | |
| ↳ | org.springframework.util.LinkedMultiValueMap<K, V> |
Simple implementation of MultiValueMap that wraps a LinkedHashMap,
storing multiple values in a LinkedList.
This Map implementation is generally not thread-safe. It is primarily designed for data structures exposed from request objects, for use in a single thread only.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new LinkedMultiValueMap that wraps a
LinkedHashMap. | |||||||||||
Create a new LinkedMultiValueMap that wraps a
LinkedHashMap
with the given initial capacity. | |||||||||||
Copy constructor: Create a new LinkedMultiValueMap with the same mappings
as the specified Map.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add the given single value to the current list of values for the given key.
| |||||||||||
Return the first value for the given key.
| |||||||||||
Set the given single value under the given key.
| |||||||||||
Set the given values under.
| |||||||||||
Returns the first values contained in this
MultiValueMap. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map
| |||||||||||
From interface
org.springframework.util.MultiValueMap
| |||||||||||
Create a new LinkedMultiValueMap that wraps a LinkedHashMap.
Create a new LinkedMultiValueMap that wraps a LinkedHashMap
with the given initial capacity.
| initialCapacity | the initial capacity |
|---|
Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map.
| otherMap | the Map whose mappings are to be placed in this Map |
|---|
Add the given single value to the current list of values for the given key.
| key | the key |
|---|---|
| value | the value to be added |
Return the first value for the given key.
| key | the key |
|---|
null
Set the given single value under the given key.
| key | the key |
|---|---|
| value | the value to set |
Set the given values under.
| values | the values. |
|---|
Returns the first values contained in this MultiValueMap.