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

    Modifier and Type
    Method
    Description
     
    default boolean
    isAnyState(State... states)
    Checks whether the state machine is in any of the given states.
    default boolean
    isState(State state)
    Checks whether the state machine is in a given state.
  • Method Details

    • getState

      State getState()
      Returns:
      The current state of the state machine.
    • isState

      default boolean isState(State state)
      Checks whether the state machine is in a given state.
    • isAnyState

      default boolean isAnyState(State... states)
      Checks whether the state machine is in any of the given states.