Top Fields Constructors Methods
org.reactfx

pack-priv Class StatefulStreamBuilderImpl<S, O>

Located in compilation unit of org.reactfx.StateMachine.

extends Object
implements StateMachine.StatefulStreamBuilder<S, O>
Class Inheritance
All Implemented Interfaces
org.reactfx.StateMachine.StatefulStreamBuilder

Field Summary

Modifier and TypeField and Description
private final LL<EmissionBuilder<S, O>>
private final S
private final LL<TransitionBuilder<S>>
private final LL<TransmissionBuilder<S, O>>

Constructor Summary

AccessConstructor and Description
pack-priv
StatefulStreamBuilderImpl(S initialState, LL<TransitionBuilder<S>> transitions, LL<EmissionBuilder<S, O>> emissions, LL<TransmissionBuilder<S, O>> transmissions)

Method Summary

Modifier and TypeMethod and Description
public <I> StateMachine.StatefulStreamBuilderOn<S, O, I>
public EventStream<O>
toEventStream()

Implements org.reactfx.StateMachine.StatefulStreamBuilder.toEventStream.

Returns an event stream that emits a value when one of the state machine's input streams causes the state machine to emit a value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

emissionsback to summary
private final LL<EmissionBuilder<S, O>> emissions
initialStateback to summary
private final S initialState
transitionsback to summary
private final LL<TransitionBuilder<S>> transitions
transmissionsback to summary
private final LL<TransmissionBuilder<S, O>> transmissions

Constructor Detail

StatefulStreamBuilderImplback to summary
pack-priv StatefulStreamBuilderImpl(S initialState, LL<TransitionBuilder<S>> transitions, LL<EmissionBuilder<S, O>> emissions, LL<TransmissionBuilder<S, O>> transmissions)

Method Detail

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

Implements org.reactfx.StateMachine.StatefulStreamBuilder.on.

Annotations
@Override
toEventStreamback to summary
public EventStream<O> toEventStream()

Implements org.reactfx.StateMachine.StatefulStreamBuilder.toEventStream.

Doc from org.reactfx.StateMachine.StatefulStreamBuilder.toEventStream.

Returns an event stream that emits a value when one of the state machine's input streams causes the state machine to emit a value.

The returned event stream is lazily bound, meaning the associated state machine is subscribed to its inputs only when the returned stream has at least one subscriber. No state transitions take place unless there is a subscriber to the returned stream. If you need to keep the state machine alive even when temporarily not subscribed to the returned stream, you can pin the returned stream.

Annotations
@Override