K
- key type.V
- value type.@JsType
public interface Map<K,V>
Modifier and Type | Interface and Description |
---|---|
static interface |
Map.Entry<K,V>
Represents an individual map entry.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
default V |
compute(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
default V |
computeIfAbsent(K key,
Function<? super K,? extends V> remappingFunction) |
default V |
computeIfPresent(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
default void |
forEach(BiConsumer<? super K,? super V> consumer) |
V |
get(Object key) |
default V |
getOrDefault(Object key,
V defaultValue) |
boolean |
isEmpty() |
Set<K> |
keySet() |
default V |
merge(K key,
V value,
BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> t) |
default V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
default boolean |
remove(Object key,
Object value) |
default V |
replace(K key,
V value) |
default boolean |
replace(K key,
V oldValue,
V newValue) |
default void |
replaceAll(BiFunction<? super K,? super V,? extends V> function) |
int |
size() |
Collection<V> |
values() |
void clear()
@JsIgnore default V compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
@JsIgnore default V computeIfAbsent(K key, Function<? super K,? extends V> remappingFunction)
@JsIgnore default V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
boolean containsKey(Object key)
boolean containsValue(Object value)
@JsIgnore default void forEach(BiConsumer<? super K,? super V> consumer)
boolean isEmpty()
@JsIgnore default V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
@JsIgnore default void replaceAll(BiFunction<? super K,? super V,? extends V> function)
int size()
Collection<V> values()
Copyright © 2018. All rights reserved.