public class DefaultMapState<K,V> extends Object implements MapState<K,V>
| Constructor and Description |
|---|
DefaultMapState() |
| 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() |
public void init(net.kuujo.copycat.state.StateContext<MapState<K,V>> context)
MapStatepublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in interface MapState<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface MapState<K,V>public void clear()
public Collection<V> values()
public V getOrDefault(Object key, V defaultValue)
getOrDefault in interface Map<K,V>getOrDefault in interface MapState<K,V>public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
replaceAll in interface Map<K,V>replaceAll in interface MapState<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface Map<K,V>putIfAbsent in interface MapState<K,V>public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
computeIfAbsent in interface Map<K,V>computeIfAbsent in interface MapState<K,V>public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
computeIfPresent in interface Map<K,V>computeIfPresent in interface MapState<K,V>public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
Copyright © 2013-2015. All Rights Reserved.