Class ActionBuilder<S,​E>

  • Direct Known Subclasses:
    GuardBuilder

    public class ActionBuilder<S,​E>
    extends java.lang.Object
    • Method Detail

      • execute

        public ActionBuilder<S,​E> execute​(Action<S,​E> action)
        Add action to the list of TransitionActions to be executed.

        Actions are executed in the order they appear in the list.

        Parameters:
        action - the action to execute.
        Returns:
        this ActionBuilder.
      • executeLast

        public ActionBuilder<S,​E> executeLast​(Action<S,​E> action)
        Add action to the end of the list of TransitionActions to be executed.

        Actions are executed in the order they appear in the list.

        Parameters:
        action - the action to execute.
        Returns:
        this ActionBuilder.
      • executeFirst

        public ActionBuilder<S,​E> executeFirst​(Action<S,​E> action)
        Add action to the beginning of the list of TransitionActions to be executed.

        Actions are executed in the order they appear in the list.

        Parameters:
        action - the action to execute.
        Returns:
        this ActionBuilder.