Package org.reactfx
Interface StateMachine.ObservableStateBuilder<S>
-
- All Known Implementing Classes:
ObservableStateBuilderImpl
- Enclosing class:
- StateMachine
public static interface StateMachine.ObservableStateBuilder<S>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <I> StateMachine.ObservableStateBuilderOn<S,I>
on(EventStream<I> input)
javafx.beans.binding.Binding<S>
toObservableState()
Returns a binding that reflects the current state of the state machine.EventStream<S>
toStateStream()
Returns an event stream that emits the current state of the state machine every time it changes.
-
-
-
Method Detail
-
on
<I> StateMachine.ObservableStateBuilderOn<S,I> on(EventStream<I> input)
-
toStateStream
EventStream<S> toStateStream()
Returns an event stream that emits the current state of the state machine every time it changes.
-
toObservableState
javafx.beans.binding.Binding<S> toObservableState()
Returns a binding that reflects the current state of the state machine. Disposing the returned binding (by calling itsdispose()
method) causes the state machine to unsubscribe from the event streams that alter its state and allows the state machine to be garbage collected.
-
-