Package dev.prozilla.pine.core.state
Interface StateProvider<Context,State extends State<Context>>
- All Known Implementing Classes:
Application
,StateMachine
public interface StateProvider<Context,State extends State<Context>>
Provides information about the state in a certain context.
-
Method Summary
-
Method Details
-
getState
State getState()- Returns:
- The current state of the state machine.
-
isState
Checks whether the state machine is in a given state. -
isAnyState
Checks whether the state machine is in any of the given states.
-