public class ValueStateImpl<T> extends Object implements ValueState<T>
| Constructor and Description |
|---|
ValueStateImpl(ValueStateDescriptor<T> descriptor,
KeyStateBackend backend) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
get the value in state
|
void |
setCurrentKey(Object currentKey)
set current key of the state
|
void |
update(T value)
update the value
|
public ValueStateImpl(ValueStateDescriptor<T> descriptor, KeyStateBackend backend)
public void update(T value)
ValueStateupdate in interface ValueState<T>value - the new valuepublic T get()
UnaryStateget in interface UnaryState<T>public void setCurrentKey(Object currentKey)
setCurrentKey in interface StateCopyright © 2020. All rights reserved.