public class KnotBuilder<State,Command>
| Constructor and Description |
|---|
KnotBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Knot<State,Command> |
build() |
java.util.List<de.halfbit.knot.TypedCommandReduceStateTransformer> |
getCommandReduceStateTransformers() |
java.util.List<de.halfbit.knot.SourcedEventReduceStateTransformer> |
getEventReduceStateTransformers() |
java.util.List<de.halfbit.knot.SourcedEventToCommandTransformer> |
getEventToCommandTransformers() |
<Event> void |
on(io.reactivex.Observable<Event> source,
kotlin.jvm.functions.Function1<? super de.halfbit.knot.EventBuilder<State,Event,Command>,kotlin.Unit> eventBuilder) |
void |
state(kotlin.jvm.functions.Function1<? super de.halfbit.knot.StateBuilder<State>,kotlin.Unit> state) |
public java.util.List<de.halfbit.knot.TypedCommandReduceStateTransformer> getCommandReduceStateTransformers()
public java.util.List<de.halfbit.knot.SourcedEventReduceStateTransformer> getEventReduceStateTransformers()
public java.util.List<de.halfbit.knot.SourcedEventToCommandTransformer> getEventToCommandTransformers()
public Knot<State,Command> build()
public <Event> void on(io.reactivex.Observable<Event> source,
kotlin.jvm.functions.Function1<? super de.halfbit.knot.EventBuilder<State,Event,Command>,kotlin.Unit> eventBuilder)
public void state(kotlin.jvm.functions.Function1<? super de.halfbit.knot.StateBuilder<State>,kotlin.Unit> state)