public class EventStream<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
<S> Value<S> |
accum(S init,
groovy.lang.Closure<S> function) |
<S> Value<S> |
accum(S init,
nz.sodium.Lambda2<T,S,S> function) |
<R> EventStream<R> |
constant(R value) |
EventStream<T> |
defer() |
EventStream<T> |
filter(groovy.lang.Closure<Boolean> predicate) |
EventStream<T> |
filter(nz.sodium.Lambda1<T,Boolean> predicate) |
static <T> EventStream<T> |
filterOptional(EventStream<Optional<T>> optionalStream) |
EventStream<T> |
gate(Value<Boolean> value) |
Value<T> |
hold(T init) |
Value<T> |
holdLazy(groovy.lang.Closure<T> init) |
Value<T> |
holdLazy(nz.sodium.Lambda0<T> init) |
void |
listen(nz.sodium.Handler<T> handler) |
void |
listenOnce(nz.sodium.Handler<T> handler) |
void |
listenWeak(nz.sodium.Handler<T> handler) |
<R> EventStream<R> |
map(groovy.lang.Closure<R> closure) |
<R> EventStream<R> |
map(nz.sodium.Lambda1<T,R> function) |
EventStream<T> |
merge(EventStream<T> other,
nz.sodium.Lambda2<T,T,T> lambda) |
static <T> EventStream<T> |
mergeAll(Iterable<EventStream<T>> streams,
nz.sodium.Lambda2<T,T,T> lambda) |
EventStream<T> |
multiply(EventStream<T> other) |
static <T> EventStream<T> |
never() |
EventStream<T> |
orElse(EventStream<T> other) |
groovy.lang.Closure<EventStream<T>> |
power(EventStream<T> other) |
<R> EventStream<R> |
snapshot(Value<R> value) |
static <A,C extends Iterable<A>> |
split(EventStream<C> iterableStream) |
static <T extends javafx.event.Event> |
streamOf(javafx.scene.Node node,
javafx.event.EventType<T> eventType) |
static <T extends javafx.event.Event> |
streamOf(javafx.stage.Window window,
javafx.event.EventType<T> eventType) |
static EventStream<nz.sodium.Unit> |
ticker(javafx.util.Duration duration) |
public static <T> EventStream<T> never()
public static <T extends javafx.event.Event> EventStream<T> streamOf(javafx.scene.Node node, javafx.event.EventType<T> eventType)
public static <T extends javafx.event.Event> EventStream<T> streamOf(javafx.stage.Window window, javafx.event.EventType<T> eventType)
public static EventStream<nz.sodium.Unit> ticker(javafx.util.Duration duration)
public void listen(nz.sodium.Handler<T> handler)
public void listenOnce(nz.sodium.Handler<T> handler)
public void listenWeak(nz.sodium.Handler<T> handler)
public <R> EventStream<R> constant(R value)
public <R> EventStream<R> map(groovy.lang.Closure<R> closure)
public <R> EventStream<R> map(nz.sodium.Lambda1<T,R> function)
public <R> EventStream<R> snapshot(Value<R> value)
public EventStream<T> multiply(EventStream<T> other)
public EventStream<T> orElse(EventStream<T> other)
public groovy.lang.Closure<EventStream<T>> power(EventStream<T> other)
public EventStream<T> merge(EventStream<T> other, nz.sodium.Lambda2<T,T,T> lambda)
public static <T> EventStream<T> mergeAll(Iterable<EventStream<T>> streams, nz.sodium.Lambda2<T,T,T> lambda)
public EventStream<T> filter(groovy.lang.Closure<Boolean> predicate)
public EventStream<T> filter(nz.sodium.Lambda1<T,Boolean> predicate)
public static <T> EventStream<T> filterOptional(EventStream<Optional<T>> optionalStream)
public EventStream<T> gate(Value<Boolean> value)
public <S> Value<S> accum(S init, groovy.lang.Closure<S> function)
public EventStream<T> defer()
public static <A,C extends Iterable<A>> EventStream<A> split(EventStream<C> iterableStream)
Copyright © 2017. All rights reserved.