类 MultiValueMapAdapter<K,V>
java.lang.Object
cn.taketoday.core.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
- 另请参阅:
-
嵌套类概要
-
构造器概要
构造器构造器说明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.voidAdd 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()booleanReturn the first value for the given key.inthashCode()booleanisEmpty()keySet()voidvoidSet the given single value under the given key.intsize()toString()Collection<List<V>>values()从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll从接口继承的方法 cn.taketoday.core.MultiValueMap
addAll, addAll, addAll, addAll, addIfAbsent, copyToArrayMap, setAll, toArrayMap, toSingleValueMap
-
构造器详细资料
-
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
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-