| Constructor and Description |
|---|
MapStateImpl(MapStateDescriptor<K,V> descriptor,
KeyStateBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
get()
get the value in state
|
V |
get(K key)
Returns the current value associated with the given key.
|
void |
put(K key,
V value)
Associates a new value with the given key.
|
void |
putAll(Map<K,V> newMap)
Copies all of the mappings from the given map into the state.
|
void |
remove(K key)
Deletes the mapping of the given key.
|
void |
setCurrentKey(Object currentKey)
set current key of the state
|
void |
update(Map<K,V> map)
Resets the state value.
|
public MapStateImpl(MapStateDescriptor<K,V> descriptor, KeyStateBackend backend)
public Map<K,V> get()
UnaryStateget in interface UnaryState<Map<K,V>>public V get(K key)
MapStatepublic void put(K key, V value)
MapStatepublic void update(Map<K,V> map)
MapStatepublic void putAll(Map<K,V> newMap)
MapStatepublic void remove(K key)
MapStatepublic void setCurrentKey(Object currentKey)
setCurrentKey in interface StateCopyright © 2020. All rights reserved.