K - the key typeV - the value element typepublic class LinkedMultiValueMap<K,V> extends CommonMultiValueMap<K,V> implements Serializable, Cloneable
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.
| 限定符和类型 | 字段和说明 |
|---|---|
static LinkedMultiValueMap |
EMPTY |
targetMap| 构造器和说明 |
|---|
LinkedMultiValueMap()
Create a new LinkedMultiValueMap that wraps a
LinkedHashMap. |
LinkedMultiValueMap(int initialCapacity)
Create a new LinkedMultiValueMap that wraps a
LinkedHashMap
with the given initial capacity. |
LinkedMultiValueMap(Map<K,List<V>> otherMap)
Copy constructor: Create a new LinkedMultiValueMap with the same mappings as
the specified Map.
|
| 限定符和类型 | 方法和说明 |
|---|---|
LinkedMultiValueMap<K,V> |
clone()
Create a regular copy of this Map.
|
boolean |
containsValue(Object value) |
LinkedMultiValueMap<K,V> |
deepCopy()
Create a deep copy of this Map.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
add, addAll, addAll, addIfAbsent, clear, containsKey, entrySet, get, getFirst, isEmpty, keySet, put, putAll, remove, set, setAll, size, toSingleValueMap, total, valuescompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final LinkedMultiValueMap EMPTY
public LinkedMultiValueMap()
LinkedHashMap.public LinkedMultiValueMap(int initialCapacity)
LinkedHashMap
with the given initial capacity.initialCapacity - the initial capacitypublic LinkedMultiValueMap(Map<K,List<V>> otherMap)
otherMap - the Map whose mappings are to be placed in this Mapclone(),
deepCopy()public boolean containsValue(Object value)
containsValue 在接口中 Map<K,Collection<V>>containsValue 在类中 CommonMultiValueMap<K,V>public LinkedMultiValueMap<K,V> deepCopy()
LinkedList for each entry)
along the lines of MultiValueMap.addAll semanticsCommonMultiValueMap.addAll(MultiValueMap),
clone()public LinkedMultiValueMap<K,V> clone()
clone 在类中 ObjectMap.put semanticsCommonMultiValueMap.putAll(Map),
LinkedMultiValueMap(Map),
deepCopy()Copyright © 2021. All rights reserved.