类 LinkedMultiValueMap<K,V>
java.lang.Object
cn.taketoday.core.DefaultMultiValueMap<K,V>
cn.taketoday.core.LinkedMultiValueMap<K,V>
- 类型参数:
K- the key typeV- the value element type
- 所有已实现的接口:
ArraySizeTrimmer,MultiValueMap<K,,V> Serializable,Cloneable,Map<K,List<V>>
Simple implementation of
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.
- 从以下版本开始:
- 4.0 2022/3/17 16:33
- 作者:
- Arjen Poutsma, Juergen Hoeller, Harry Yang
- 另请参阅:
-
嵌套类概要
-
字段概要
从类继承的字段 cn.taketoday.core.DefaultMultiValueMap
defaultMappingFunction -
构造器概要
构造器构造器说明Create a new LinkedMultiValueMap that wraps aLinkedHashMap.LinkedMultiValueMap(int expectedSize) Create a new LinkedMultiValueMap that wraps aLinkedHashMapwith an initial capacity that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected.LinkedMultiValueMap(Map<K, List<V>> otherMap) Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. -
方法概要
从类继承的方法 cn.taketoday.core.DefaultMultiValueMap
add, addAll, addAll, addAll, clear, cloneMap, containsKey, containsValue, entrySet, equals, get, getFirst, hashCode, isEmpty, keySet, put, putAll, remove, set, size, toString, trimToSize, values从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll从接口继承的方法 cn.taketoday.core.MultiValueMap
addAll, addAll, addIfAbsent, copyToArrayMap, setAll, toArrayMap, toSingleValueMap
-
构造器详细资料
-
LinkedMultiValueMap
public LinkedMultiValueMap()Create a new LinkedMultiValueMap that wraps aLinkedHashMap. -
LinkedMultiValueMap
public LinkedMultiValueMap(int expectedSize) Create a new LinkedMultiValueMap that wraps aLinkedHashMapwith an initial capacity that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected.- 参数:
expectedSize- the expected number of elements (with a corresponding capacity to be derived so that no resize/rehash operations are needed)- 另请参阅:
-
LinkedMultiValueMap
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.- 参数:
otherMap- the Map whose mappings are to be placed in this Map- 另请参阅:
-
-
方法详细资料
-
deepCopy
Create a deep copy of this Map.- 覆盖:
deepCopy在类中DefaultMultiValueMap<K,V> - 返回:
- a copy of this Map, including a copy of each value-holding List entry
(consistently using an independent modifiable
ArrayListfor each entry) along the lines ofMultiValueMap.addAllsemantics - 另请参阅:
-
clone
Create a regular copy of this Map.- 覆盖:
clone在类中DefaultMultiValueMap<K,V> - 返回:
- 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 standard
Map.putsemantics - 另请参阅:
-