类 MultiValueMapAdapter<K,V>
java.lang.Object
cn.taketoday.util.MultiValueMapAdapter<K,V>
- 类型参数:
K- the key typeV- the value element type
- 所有已实现的接口:
MultiValueMap<K,,V> Serializable,Map<K,List<V>>
Adapts a given
Map to the MultiValueMap contract.- 从以下版本开始:
- 4.0 2022/4/25 14:39
- 作者:
- Arjen Poutsma, Juergen Hoeller, Harry Yang
- 另请参阅:
-
嵌套类概要
-
字段概要
字段从接口继承的字段 cn.taketoday.util.MultiValueMap
defaultMappingFunction -
构造器概要
构造器构造器说明MultiValueMapAdapter(Map<K, List<V>> targetMap) Wrap the given targetMapas aMultiValueMapadapter. -
方法概要
修饰符和类型方法说明voidAdd the given single value to the current list of values for the given key.voidaddAll(K key, Collection<? extends V> values) Add all the values of the given list to the current list of values for the given key.voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super K, ? super List<V>> action) Return the first value for the given key.inthashCode()booleanisEmpty()keySet()voidputIfAbsent(K key, List<V> value) voidSet the given single value under the given key.intsize()toString()Collection<List<V>>values()从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, remove, replace, replace, replaceAll从接口继承的方法 cn.taketoday.util.MultiValueMap
addAll, addAll, addAll, addIfAbsent, copyToArrayMap, setAll, toArrayMap, toSingleValueMap
-
字段详细资料
-
targetMap
-
-
构造器详细资料
-
MultiValueMapAdapter
Wrap the given targetMapas aMultiValueMapadapter.- 参数:
targetMap- the plain targetMap
-
-
方法详细资料
-
getFirst
从接口复制的说明:MultiValueMapReturn the first value for the given key.- 指定者:
getFirst在接口中MultiValueMap<K,V> - 参数:
key- the key- 返回:
- the first value for the specified key, or
nullif none
-
add
从接口复制的说明:MultiValueMapAdd the given single value to the current list of values for the given key.- 指定者:
add在接口中MultiValueMap<K,V> - 参数:
key- the keyvalue- the value to be added
-
addAll
从接口复制的说明:MultiValueMapAdd all the values of the given list to the current list of values for the given key.- 指定者:
addAll在接口中MultiValueMap<K,V> - 参数:
key- they keyvalues- the values to be added
-
set
从接口复制的说明:MultiValueMapSet the given single value under the given key.- 指定者:
set在接口中MultiValueMap<K,V> - 参数:
key- the keyvalue- the value to set
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- 指定者:
containsKey在接口中Map<K,V>
-
containsValue
- 指定者:
containsValue在接口中Map<K,V>
-
get
-
put
-
putIfAbsent
- 指定者:
putIfAbsent在接口中Map<K,V>
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
forEach
-
equals
-
hashCode
public int hashCode() -
toString
-