/** * Create a new {@link StateTransition} specification from one {@link State} * to another (by name). * * @param state the {@link State} used to generate the outcome for this * transition * @param pattern the pattern to match in the exit status of the * {@link State} (can be {@code null}) * @param next the name of the next {@link State} to execute (can be {@code null}) * @return {@link StateTransition} that was created. */ public static StateTransition createStateTransition(State state, @Nullable String pattern, @Nullable String next) { return new StateTransition(state, pattern, next); }
/** * Create a new {@link StateTransition} specification from one {@link State} * to another (by name). * * @param state the {@link State} used to generate the outcome for this * transition * @param pattern the pattern to match in the exit status of the * {@link State} * @param next the name of the next {@link State} to execute */ public static StateTransition createStateTransition(State state, String pattern, String next) { return new StateTransition(state, pattern, next); }
/** * Create a new {@link StateTransition} specification from one {@link State} * to another (by name). * * @param state the {@link State} used to generate the outcome for this * transition * @param pattern the pattern to match in the exit status of the * {@link State} * @param next the name of the next {@link State} to execute */ public static StateTransition createStateTransition(State state, String pattern, String next) { return new StateTransition(state, pattern, next); }
/** * Create a new {@link StateTransition} specification from one {@link State} * to another (by name). * * @param state the {@link State} used to generate the outcome for this * transition * @param pattern the pattern to match in the exit status of the * {@link State} (can be {@code null}) * @param next the name of the next {@link State} to execute (can be {@code null}) * @return {@link StateTransition} that was created. */ public static StateTransition createStateTransition(State state, @Nullable String pattern, @Nullable String next) { return new StateTransition(state, pattern, next); }
/** * Create a new {@link StateTransition} specification from one {@link State} * to another (by name). * * @param state the {@link State} used to generate the outcome for this * transition * @param pattern the pattern to match in the exit status of the * {@link State} (can be {@code null}) * @param next the name of the next {@link State} to execute (can be {@code null}) * @return {@link StateTransition} that was created. */ public static StateTransition createStateTransition(State state, @Nullable String pattern, @Nullable String next) { return new StateTransition(state, pattern, next); }