public class PureStateMachine<State,Event,Command>
PureStateMachineApp Created by matt on 2/22/18.
| Constructor and Description |
|---|
PureStateMachine(State initialState,
kotlin.jvm.functions.Function2<? super State,? super Event,? extends kotlin.Pair<? extends State,? extends Command>> handler)
PureStateMachineApp
Created by matt on 2/22/18.
|
| Modifier and Type | Method and Description |
|---|---|
State |
getCurrentState() |
Command |
handleEvent(Event event) |