Class StateToolRegistration

  • All Implemented Interfaces:

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

    Registration for a tool in a specific state.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final StateBuilder<S> build() Tool stays in current state after execution (no transition).
      final StateBuilder<S> transitionsTo(S targetState) Tool transitions to specified state after successful execution.
      final StateToolRegistration<S> withTool(Tool nextTool) Add another tool in the same state.
      final StateBuilder<S> inState(S nextState) Switch to configuring a different state.
      • Methods inherited from class java.lang.Object

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