public class KnotBuilder<State,Command,Change>
| Modifier and Type | Method and Description |
|---|---|
Knot<State,Command,Change> |
build() |
void |
onCommand(kotlin.jvm.functions.Function1<? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<Change>> transformer) |
void |
onEvent(kotlin.jvm.functions.Function0<? extends io.reactivex.Observable<Change>> transformer) |
void |
state(kotlin.jvm.functions.Function1<? super de.halfbit.knot.OnState<State,Change>,kotlin.Unit> block) |
public void state(kotlin.jvm.functions.Function1<? super de.halfbit.knot.OnState<State,Change>,kotlin.Unit> block)
public void onEvent(kotlin.jvm.functions.Function0<? extends io.reactivex.Observable<Change>> transformer)
public void onCommand(kotlin.jvm.functions.Function1<? super io.reactivex.Observable<Command>,? extends io.reactivex.Observable<Change>> transformer)
public Knot<State,Command,Change> build()