S - the type of stateE - the type of eventpublic class StateHolder<S,E>
extends java.lang.Object
State reference.| Constructor and Description |
|---|
StateHolder(State<S,E> state)
Instantiates a new state holder.
|
| Modifier and Type | Method and Description |
|---|---|
State<S,E> |
getState()
Gets the state.
|
void |
setState(State<S,E> state)
Sets the state.
|