类 UnmodifiableMultiValueMap<K,V>
java.lang.Object
cn.taketoday.util.UnmodifiableMultiValueMap<K,V>
- 类型参数:
K- the key typeV- the value element type
- 所有已实现的接口:
MultiValueMap<K,,V> Serializable,Map<K,List<V>>
final class UnmodifiableMultiValueMap<K,V>
extends Object
implements MultiValueMap<K,V>, Serializable
Unmodifiable wrapper for
MultiValueMap.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang 2021/11/16 15:37
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static final record -
字段概要
字段从接口继承的字段 cn.taketoday.util.MultiValueMap
defaultMappingFunction -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidAdd the given single value to the current list of values for the given key.voidaddAll(Map.Entry<K, ? extends Collection<V>> pair) Add all the values of the givenMultiValueMapto the current values.voidAdd all the values of the givenMultiValueMapto the current values.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.voidaddAll(K key, Enumeration<? extends V> values) Add all the values of the given enumeration to the current enumeration of values for the given key.voidaddIfAbsent(K key, V value) voidclear()computeIfPresent(K key, BiFunction<? super K, ? super List<V>, ? extends List<V>> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super K, ? super List<V>> action) Return the first value for the given key.getOrDefault(Object key, List<V> defaultValue) inthashCode()booleanisEmpty()keySet()merge(K key, List<V> value, BiFunction<? super List<V>, ? super List<V>, ? extends List<V>> remappingFunction) voidputIfAbsent(K key, List<V> value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super List<V>, ? extends List<V>> function) voidSet the given single value under the given key.voidSet the given values under.intsize()Return aMapwith the first values contained in thisMultiValueMap.toString()Collection<List<V>>values()从接口继承的方法 cn.taketoday.util.MultiValueMap
copyToArrayMap, toArrayMap
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
delegate
-
keySet
-
entrySet
-
values
-
-
构造器详细资料
-
UnmodifiableMultiValueMap
-
-
方法详细资料
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- 指定者:
containsKey在接口中Map<K,V>
-
containsValue
- 指定者:
containsValue在接口中Map<K,V>
-
get
-
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
-
getOrDefault
- 指定者:
getOrDefault在接口中Map<K,V>
-
forEach
-
toSingleValueMap
从接口复制的说明:MultiValueMapReturn aMapwith the first values contained in thisMultiValueMap.- 指定者:
toSingleValueMap在接口中MultiValueMap<K,V> - 返回:
- a single value representation of this map
-
hashCode
public int hashCode() -
equals
-
toString
-
keySet
-
entrySet
-
values
-
put
-
putIfAbsent
- 指定者:
putIfAbsent在接口中Map<K,V>
-
putAll
-
remove
-
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
-
addAll
从接口复制的说明:MultiValueMapAdd all the values of the given enumeration to the current enumeration of values for the given key.- 指定者:
addAll在接口中MultiValueMap<K,V> - 参数:
key- they keyvalues- the values to be added
-
addAll
从接口复制的说明:MultiValueMapAdd all the values of the givenMultiValueMapto the current values.- 指定者:
addAll在接口中MultiValueMap<K,V> - 参数:
values- the values to be added
-
addAll
从接口复制的说明:MultiValueMapAdd all the values of the givenMultiValueMapto the current values.- 指定者:
addAll在接口中MultiValueMap<K,V> - 参数:
pair- Entry
-
addIfAbsent
从接口复制的说明:MultiValueMap- 指定者:
addIfAbsent在接口中MultiValueMap<K,V> - 参数:
key- the keyvalue- the value to be added
-
set
从接口复制的说明:MultiValueMapSet the given single value under the given key.- 指定者:
set在接口中MultiValueMap<K,V> - 参数:
key- the keyvalue- the value to set
-
setAll
从接口复制的说明:MultiValueMapSet the given values under.- 指定者:
setAll在接口中MultiValueMap<K,V> - 参数:
values- the values.
-
replaceAll
- 指定者:
replaceAll在接口中Map<K,V>
-
remove
-
replace
-
replace
-
computeIfAbsent
- 指定者:
computeIfAbsent在接口中Map<K,V>
-
computeIfPresent
public List<V> computeIfPresent(K key, BiFunction<? super K, ? super List<V>, ? extends List<V>> remappingFunction) - 指定者:
computeIfPresent在接口中Map<K,V>
-
compute
-
merge
-
clear
public void clear()
-