Class StateHolder

  • All Implemented Interfaces:

    
    public final class StateHolder<S extends Enum<S>>
    
                        

    Holds the current state of a state machine execution. Mutable to allow state transitions during tool execution.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final volatile S currentState
    • Constructor Summary

      Constructors 
      Constructor Description
      StateHolder(S initialState)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final S getCurrentState()
      final Unit transitionTo(S newState)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait