public interface MapState<K,V> extends Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
V |
compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction) |
V |
computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
V |
getOrDefault(Object key,
V defaultValue) |
void |
init(net.kuujo.copycat.state.StateContext<MapState<K,V>> context)
Initializes the map state.
|
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
merge(K key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) |
int |
size() |
Collection<V> |
values() |
void init(net.kuujo.copycat.state.StateContext<MapState<K,V>> context)
context - The map state context.boolean containsKey(Object key)
containsKey in interface Map<K,V>boolean containsValue(Object value)
containsValue in interface Map<K,V>V getOrDefault(Object key, V defaultValue)
getOrDefault in interface Map<K,V>void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
replaceAll in interface Map<K,V>V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
computeIfAbsent in interface Map<K,V>V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent in interface Map<K,V>V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Copyright © 2013-2015. All Rights Reserved.