S - The type of the state to transition to.O - The type of the outputs from the transition.public final class Transition<S,O> extends Object
| Modifier and Type | Method and Description |
|---|---|
S |
getNewState() |
java.util.stream.Stream<O> |
getOutputs() |
static <S,O> Transition<S,O> |
to(S newState,
O... outputs)
Create a transition to a new state with zero or more outputs.
|
static <S,O> Transition<S,O> |
to(S newState,
java.util.stream.Stream<O> outputs)
Create a transition to a new state with the given outputs.
|
@SafeVarargs public static <S,O> Transition<S,O> to(S newState, O... outputs)
S - The type of the state to transition to.O - The type of the outputs from the transition.newState - The state to transition to.outputs - The outputs from the transition.public static <S,O> Transition<S,O> to(S newState, java.util.stream.Stream<O> outputs)
S - The type of the state to transition to.O - The type of the outputs.newState - The state to transition to.outputs - The outputs from the transition.public S getNewState()
public java.util.stream.Stream<O> getOutputs()
Copyright © 2020. All rights reserved.