MultiValueMap that wraps a LinkedHashMap,
storing multiple values in an ArrayList.
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.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LinkedMultiValueMap(int
the expected number of elements (with a corresponding
capacity to be derived so that no resize/rehash operations are needed) expectedSize)Create a new LinkedMultiValueMap that wraps a |
| public | LinkedMultiValueMap(Map<K, List<V>>
the Map whose mappings are to be placed in this Map otherMap)Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. |
| Modifier and Type | Method and Description |
|---|---|
| public LinkedMultiValueMap | Returns: a shallow copy of this Map, reusing this Map's value-holding List entries (even if some entries are shared or unmodifiable) along the lines of standardMap.put semanticsOverrides java. |
| public LinkedMultiValueMap |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| LinkedMultiValueMap | back to summary |
|---|---|
| public LinkedMultiValueMap() Create a new LinkedMultiValueMap that wraps a | |
| LinkedMultiValueMap | back to summary |
|---|---|
| public LinkedMultiValueMap(int expectedSize) Create a new LinkedMultiValueMap that wraps a
| |
| LinkedMultiValueMap | back to summary |
|---|---|
| public LinkedMultiValueMap(Map<K, List<V>> otherMap) Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. Note that this will be a shallow copy; its value-holding List entries will get reused and therefore cannot get modified independently.
| |
| clone | back to summary |
|---|---|
| public LinkedMultiValueMap Overrides java. Create a regular copy of this Map.
| |
| deepCopy | back to summary |
|---|---|
| public LinkedMultiValueMap Create a deep copy of this Map.
| |