K
- the enum used to identify statesE
- the enum used to identify eventspublic interface IStateFactory<K,E>
Modifier and Type | Method and Description |
---|---|
ObjectState<K,E> |
getInitialState()
Returns the state to start with
|
ObjectState<K,E> |
getState(K state) |
ObjectState<K,E> getState(K state)
state
- the state enum of the state to retrieveObjectState<K,E> getInitialState()