Top Fields Constructors Methods
org.reactfx

pack-priv Class ObservableStateBuilderImpl<S>

Located in compilation unit of org.reactfx.StateMachine.

extends Object
implements StateMachine.ObservableStateBuilder<S>
Class Inheritance
All Implemented Interfaces
org.reactfx.StateMachine.ObservableStateBuilder

Field Summary

Modifier and TypeField and Description
private final S
private final LL<TransitionBuilder<S>>

Constructor Summary

AccessConstructor and Description
pack-priv
ObservableStateBuilderImpl(S initialState, LL<TransitionBuilder<S>> transitions)

Method Summary

Modifier and TypeMethod and Description
public <I> StateMachine.ObservableStateBuilderOn<S, I>
public Binding<S>
toObservableState()

Implements org.reactfx.StateMachine.ObservableStateBuilder.toObservableState.

Returns a binding that reflects the current state of the state machine.

public EventStream<S>
toStateStream()

Implements org.reactfx.StateMachine.ObservableStateBuilder.toStateStream.

Returns an event stream that emits the current state of the state machine every time it changes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

initialStateback to summary
private final S initialState
transitionsback to summary
private final LL<TransitionBuilder<S>> transitions

Constructor Detail

ObservableStateBuilderImplback to summary
pack-priv ObservableStateBuilderImpl(S initialState, LL<TransitionBuilder<S>> transitions)

Method Detail

onback to summary
public <I> StateMachine.ObservableStateBuilderOn<S, I> on(EventStream<I> input)

Implements org.reactfx.StateMachine.ObservableStateBuilder.on.

Annotations
@Override
toObservableStateback to summary
public Binding<S> toObservableState()

Implements org.reactfx.StateMachine.ObservableStateBuilder.toObservableState.

Doc from org.reactfx.StateMachine.ObservableStateBuilder.toObservableState.

Returns a binding that reflects the current state of the state machine. Disposing the returned binding (by calling its dispose() method) causes the state machine to unsubscribe from the event streams that alter its state and allows the state machine to be garbage collected.

Annotations
@Override
toStateStreamback to summary
public EventStream<S> toStateStream()

Implements org.reactfx.StateMachine.ObservableStateBuilder.toStateStream.

Doc from org.reactfx.StateMachine.ObservableStateBuilder.toStateStream.

Returns an event stream that emits the current state of the state machine every time it changes.

Annotations
@Override