Interface Transition<T,R>

Type Parameters:
T - the type of the output of the step that the transition is from
R - the type of the input of the step that the transition is to

public interface Transition<T,R>
A Transition provides a way to transition from one Step to another when certain conditions are met.
Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Step<R,?>
    get()
    Returns the next Step to transition to.
    boolean
    isApplicable(T input)
    Checks if the transition is applicable to the given input.
    map(T input)
    Maps the input to a new input for the next Step.
  • Method Details

    • isApplicable

      boolean isApplicable(T input)
      Checks if the transition is applicable to the given input.
      Parameters:
      input - the input to check
      Returns:
      true if the transition is applicable, false otherwise
      Since:
      1.0.0
    • get

      Step<R,?> get()
      Returns the next Step to transition to.
      Returns:
      the next Step
      Since:
      1.0.0
    • map

      R map(T input)
      Maps the input to a new input for the next Step.
      Parameters:
      input - the input to map
      Returns:
      the mapped input
      Since:
      1.1.0