Class State

    • Method Detail

      • stateName

        public final String stateName()

        The name of the state.

        Returns:
        The name of the state.
      • onInput

        public final OnInputLifecycle onInput()

        When an input is received and the condition is TRUE, perform the specified actions.

        Returns:
        When an input is received and the condition is TRUE, perform the specified actions.
      • onEnter

        public final OnEnterLifecycle onEnter()

        When entering this state, perform these actions if the condition is TRUE.

        Returns:
        When entering this state, perform these actions if the condition is TRUE.
      • onExit

        public final OnExitLifecycle onExit()

        When exiting this state, perform these actions if the specified condition is TRUE.

        Returns:
        When exiting this state, perform these actions if the specified condition is TRUE.
      • serializableBuilderClass

        public static Class<? extends State.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)