Uses of Interface
org.reactfx.EventStream
-
Packages that use EventStream Package Description org.reactfx org.reactfx.collection org.reactfx.value -
-
Uses of EventStream in org.reactfx
Subinterfaces of EventStream in org.reactfx Modifier and Type Interface Description interfaceAwaitingEventStream<T>An event stream that indicates whether there is a pending event that can be expected to be emitted in the future.interfaceCompletionStageStream<T>interfaceConnectableEventStream<T>interfaceProperEventStream<T>Trait to be mixed intoObservableBaseto obtain default implementation of someEventStreammethods on top of Observable methods and get additional helper methods for proper event streams implemented as default methods on top of ProperObservable methods.interfaceSuspendableEventStream<T>An event stream whose emission of events can be suspended temporarily.interfaceSuspenderStream<T,S extends Suspendable>An event stream that suspends a suspendable object during emission.interfaceTaskStream<T>Classes in org.reactfx that implement EventStream Modifier and Type Class Description (package private) classAbstractReducibleEventStream<T>(package private) classAccumulateBetweenStream<T,A>(package private) classAccumulateUntilLaterStream<T,A>(package private) classAccumulatingStream<T,U>(package private) classAccumulativeEventStream<T,A>(package private) classAwait<T,F>(package private) classAwaitLatest<T,F>classConnectableEventSource<T>(package private) classDefaultEventStream<T>(package private) classDistinctStream<T>Seedistinct()(package private) classEmitBothOnEachStream<A,I>(package private) classEmitOnEachStream<T>(package private) classEmitOnStream<T>classEventSource<T>EventSource is an EventSink that serves also as an EventStream - every value pushed to EventSource is immediately emitted by it.classEventStreamBase<T>Base class for event streams.private static classEventStreams.Never<T>(package private) classFilterMapStream<T,U>(package private) classFilterStream<T>(package private) classFlatMapOptStream<T,U>(package private) classFlatMapStream<T,U>(package private) classForgetfulEventStream<T>Seeforgetful()(package private) classHookStream<T>(package private) classLatestNStream<T>SeelatestN(int)(package private) classMappedStream<T,U>Seemap(Function)(package private) classMappedToCompletionStageStream<T,U>(package private) classMappedToTaskStream<T,U>(package private) classPausableEventStream<T>Seepausable()(package private) classRecursiveStream<T>(package private) classReducibleEventStream<T>(package private) classRepeatOnStream<T>(package private) classStatefulStream<S,O>(package private) classStateStream<S>(package private) classSuccessionReducingStream<I,O>(package private) classSuppressibleEventStream<T>(package private) classSuspendableEventStreamBase<T,A>(package private) classSuspendedWhenStream<T>(package private) classSuspenderStreamImpl<T,S extends Suspendable>(package private) classThenAccumulateForStream<T,A>(package private) classThreadBridge<T>Fields in org.reactfx declared as EventStream Modifier and Type Field Description private EventStream<?>AwaitLatest. cancelImpulseprivate EventStream<I>EmitBothOnEachStream. impulseprivate EventStream<?>EmitOnEachStream. impulseprivate EventStream<?>EmitOnStream. impulseprivate EventStream<?>RepeatOnStream. impulseprivate EventStream<T>AccumulatingStream. inputprivate EventStream<T>DefaultEventStream. inputprivate EventStream<T>DistinctStream. inputprivate EventStream<T>MappedStream. inputprivate EventStream<I>ObservableStateBuilderOnImpl. inputprivate EventStream<T>RecursiveStream. inputprivate EventStream<I>StatefulStreamBuilderOnImpl. inputprivate EventStream<I>SuccessionReducingStream. inputprivate EventStream<T>SuspendableBase. inputprivate EventStream<T>ThenAccumulateForStream. inputprivate EventStream<T>ThreadBridge. inputprivate static EventStream<?>EventStreams. NEVERprivate EventStream<T>AccumulateBetweenStream. sourceprivate EventStream<T>AccumulateUntilLaterStream. sourceprivate EventStream<F>Await. sourceprivate EventStream<F>AwaitLatest. sourceprivate EventStream<A>EmitBothOnEachStream. sourceprivate EventStream<T>EmitOnEachStream. sourceprivate EventStream<T>EmitOnStream. sourceprivate EventStream<T>FilterMapStream. sourceprivate EventStream<T>FilterStream. sourceprivate EventStream<T>FlatMapOptStream. sourceprivate EventStream<T>FlatMapStream. sourceprivate EventStream<T>HookStream. sourceprivate EventStream<T>LatestNStream. sourceprivate EventStream<T>RepeatOnStream. sourceprivate EventStream<T>SuspenderStreamImpl. sourceprivate EventStream<?>AccumulateBetweenStream. ticksFields in org.reactfx with type parameters of type EventStream Modifier and Type Field Description private java.util.function.Function<? super T,? extends EventStream<U>>FlatMapStream. mapperprivate MapHelper<EventStream<? extends T>,Subscription>ConnectableEventSource. subscriptionsMethods in org.reactfx that return EventStream Modifier and Type Method Description default <U> EventStream<U>EventStream. accumulate(java.util.function.BiFunction<? super U,? super T,? extends U> reduction, java.util.function.Function<? super T,? extends U> initialTransformation)Returns an event stream that accumulates events emitted from this event stream and emits the accumulated value every time this stream emits a value.default EventStream<T>EventStream. accumulate(java.util.function.BinaryOperator<T> reduction)Returns an event stream that accumulates events emitted from this event stream and emits the accumulated value every time this stream emits a value.default <U> EventStream<U>EventStream. accumulate(U unit, java.util.function.BiFunction<? super U,? super T,? extends U> reduction)Returns an event stream that accumulates events emitted from this event stream and emits the accumulated value every time this stream emits a value.default <A> EventStream<T>EventStream. accumulateBetween(EventStream<?> ticks, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)Returns an event stream that, when an event arrives from this stream, transforms it into a cumulative value using theinitialTransformationfunction.default <A> EventStream<T>EventStream. accumulateBetween(EventStream<?> ticks, java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)A variation onaccumulateBetween(EventStream, Function, BiFunction, Function)to use when it is more convenient to provide a unit element of the accumulation than to transform the initial event to a cumulative value.default <A> EventStream<T>EventStream. accumulateUntilLater(java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)Returns an event stream that, when an event is emitted from this stream, transforms the event to a cumulative value using theinitialTransformationfunction and schedules emission usingPlatform.runLater(Runnable), if not already scheduled.default <A> EventStream<T>EventStream. accumulateUntilLater(java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction, java.util.concurrent.Executor eventThreadExecutor)Version ofaccumulateUntilLater(Function, BiFunction, Function)for event streams that don't live on the JavaFX application thread.default <A> EventStream<T>EventStream. accumulateUntilLater(java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)A variation onaccumulateUntilLater(Function, BiFunction, Function)to use when it is more convenient to provide a unit element of the accumulation than to transform the initial event to a cumulative value.default <A> EventStream<T>EventStream. accumulateUntilLater(java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction, java.util.concurrent.Executor eventThreadExecutor)Version ofaccumulateUntilLater(Supplier, BiFunction, Function)for event streams that don't live on the JavaFX application thread.default <A> EventStream<T>EventStream. accumulateWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,AccumulatorSize> size, java.util.function.Function<? super A,? extends T> head, java.util.function.Function<? super A,? extends A> tail)Shortcut fordefault <A> EventStream<T>EventStream. accumulateWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition, java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,AccumulatorSize> size, java.util.function.Function<? super A,? extends T> head, java.util.function.Function<? super A,? extends A> tail)Shortcut forstatic EventStream<java.lang.Long>EventStreams. animationFrames()Returns a stream that, on each animation frame, emits the duration elapsed since the previous animation frame, in nanoseconds.static EventStream<java.lang.Long>EventStreams. animationTicks()Returns an event stream that emits a timestamp of the current frame in nanoseconds on every frame.default <U extends T>
EventStream<U>EventStream. cast(java.lang.Class<U> subtype)Returns a new event stream that emits events emitted by this stream cast to the given type.static <T> EventStream<Change<T>>EventStreams. changesOf(javafx.beans.value.ObservableValue<T> observable)static <T> EventStream<javafx.collections.ListChangeListener.Change<? extends T>>EventStreams. changesOf(javafx.collections.ObservableList<T> list)static <K,V>
EventStream<javafx.collections.MapChangeListener.Change<? extends K,? extends V>>EventStreams. changesOf(javafx.collections.ObservableMap<K,V> map)static <T> EventStream<javafx.collections.SetChangeListener.Change<? extends T>>EventStreams. changesOf(javafx.collections.ObservableSet<T> set)static <A,B>
EventStream<Tuple2<A,B>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB)static <A,B,C>
EventStream<Tuple3<A,B,C>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC)static <A,B,C,D>
EventStream<Tuple4<A,B,C,D>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD)static <A,B,C,D,E>
EventStream<Tuple5<A,B,C,D,E>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD, EventStream<E> srcE)static <A,B,C,D,E,F>
EventStream<Tuple6<A,B,C,D,E,F>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD, EventStream<E> srcE, EventStream<F> srcF)default EventStream<T>EventStream. conditionOn(javafx.beans.value.ObservableValue<java.lang.Boolean> condition)default EventStream<T>EventStream. conditionOnShowing(javafx.scene.Node node)Equivalent toconditionOn(ObservableValue)where the condition is thatnodeis showing: it is part of a scene graph (Node.sceneProperty()is notnull), its scene is part of a window (Scene.windowProperty()is notnull) and the window is showing (Window.showingProperty()istrue).private static <T> EventStream<T>EventStreams. create(java.util.function.Supplier<? extends T> computeValue, javafx.beans.Observable... dependencies)default EventStream<T>EventStream. distinct()Returns a new event stream that emits repetitive events only once.default <I> EventStream<Tuple2<T,I>>EventStream. emitBothOnEach(EventStream<I> impulse)Similar toemitOnEach(EventStream), but also includes the impulse in the emitted value.default EventStream<T>EventStream. emitOn(EventStream<?> impulse)Returns a new event stream that, when an event arrives from theimpulsestream, emits the most recent event emitted by this stream.default EventStream<T>EventStream. emitOnEach(EventStream<?> impulse)Returns a new event stream that, when an event arrives from theimpulsestream, emits the most recent event emitted by this stream.static <T extends javafx.event.Event>
EventStream<T>EventStreams. eventsOf(javafx.scene.control.MenuItem menuItem, javafx.event.EventType<T> eventType)static <T extends javafx.event.Event>
EventStream<T>EventStreams. eventsOf(javafx.scene.Node node, javafx.event.EventType<T> eventType)static <T extends javafx.event.Event>
EventStream<T>EventStreams. eventsOf(javafx.scene.Scene scene, javafx.event.EventType<T> eventType)static <T extends javafx.event.Event>
EventStream<T>EventStreams. eventsOf(javafx.stage.Window window, javafx.event.EventType<T> eventType)default <U extends T>
EventStream<U>EventStream. filter(java.lang.Class<U> subtype)Filters this event stream by the runtime type of the values.default EventStream<T>EventStream. filter(java.util.function.Predicate<? super T> predicate)Returns a new event stream that emits events emitted from this stream that satisfy the given predicate.default <U> EventStream<U>EventStream. filterMap(java.util.function.Function<? super T,java.util.Optional<U>> f)Equivalent todefault <U> EventStream<U>EventStream. filterMap(java.util.function.Predicate<? super T> predicate, java.util.function.Function<? super T,? extends U> f)A more efficient equivalent tofilter(predicate).map(f).default <U> EventStream<U>EventStream. flatMap(java.util.function.Function<? super T,? extends EventStream<U>> f)Returns a new event stream that, for each event x emitted from this stream, obtains the event stream f(x) and keeps emitting its events until the next event is emitted from this stream.default EventStream<T>EventStream. guardedBy(Guardian... guardians)Deprecated.UsesuspenderOf(Suspendable)instead.default EventStream<T>EventStream. hook(java.util.function.Consumer<? super T> sideEffect)Returns an event stream that emits the same(*) events as this stream, but before emitting each event performs the given side effect.static EventStream<java.lang.Void>EventStreams. invalidationsOf(javafx.beans.Observable observable)Creates an event stream that emits an impulse on every invalidation of the given observable.default EventStream<java.util.List<T>>EventStream. latestN(int n)Returns an event stream that emits lists ofnlatest events emitted from this stream.default <U> EventStream<U>EventStream. map(java.util.function.Function<? super T,? extends U> f)Returns a new event stream that applies the given function to every value emitted from this stream and emits the result.static <T> EventStream<T>EventStreams. merge(javafx.collections.ObservableSet<? extends EventStream<T>> set)Returns an event stream that emits all the events emitted from any of the event streams in the given observable set.static <T,U>
EventStream<U>EventStreams. merge(javafx.collections.ObservableSet<? extends T> set, java.util.function.Function<? super T,? extends EventStream<U>> f)A more general version ofEventStreams.merge(ObservableSet)for a set of arbitrary element type and a function to obtain an event stream from the element.static <T> EventStream<T>EventStreams. merge(EventStream<? extends T>... inputs)Returns an event stream that emits all the events emitted from any of theinputs.static <T> EventStream<T>EventStreams. never()Returns an event stream that never emits any value.EventStream<?>SuspendableBoolean. noes()static <T> EventStream<T>EventStreams. nonNullValuesOf(javafx.beans.value.ObservableValue<T> observable)EventStream<java.lang.Void>Indicator. offs()Deprecated.default <A> EventStream<T>EventStream. onRecurseAccumulate(java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> reduction, java.util.function.Function<? super A,AccumulatorSize> size, java.util.function.Function<? super A,? extends T> head, java.util.function.Function<? super A,? extends A> tail)default <A> EventStream<T>EventStream. onRecurseAccumulate(java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> reduction, java.util.function.Function<? super A,AccumulatorSize> size, java.util.function.Function<? super A,? extends T> head, java.util.function.Function<? super A,? extends A> tail)default EventStream<T>EventStream. onRecurseQueue()default EventStream<T>EventStream. onRecurseReduce(java.util.function.BinaryOperator<T> reduction)default EventStream<T>EventStream. onRecurseRetainLatest()EventStream<java.lang.Void>Indicator. ons()Deprecated.default <U> EventStream<Either<T,U>>EventStream. or(EventStream<? extends U> right)Returns an event stream that emits all the events emitted from either this stream or therightstream.default EventStream<T>EventStream. pauseWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition)Shortcut forpausable().suspendedWhen(condition).default EventStream<T>EventStream. queueBetween(EventStream<?> ticks)Returns an event stream that, when an event arrives from this stream, enqueues it for emission.default EventStream<T>EventStream. queueUntilLater()Returns an event stream that, when an event is emitted from this stream, enqueues the event for emission and schedules emission usingPlatform.runLater(Runnable), if not already scheduled.default EventStream<T>EventStream. queueUntilLater(java.util.concurrent.Executor eventThreadExecutor)Version ofqueueUntilLater()for event streams that don't live on the JavaFX application thread.default EventStream<T>EventStream. reduceBetween(EventStream<?> ticks, java.util.function.BinaryOperator<T> reduction)Returns an event stream that, when an event arrives from this stream, stores it for emission.default EventStream<T>EventStream. reduceUntilLater(java.util.function.BinaryOperator<T> reduction)Returns an event stream that, when an event is emitted from this stream, stores the event for emission and schedules emission usingPlatform.runLater(Runnable), if not already scheduled.default EventStream<T>EventStream. reduceUntilLater(java.util.function.BinaryOperator<T> reduction, java.util.concurrent.Executor eventThreadExecutor)Version ofreduceUntilLater(BinaryOperator)for event streams that don't live on the JavaFX application thread.default EventStream<T>EventStream. reduceWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition, java.util.function.BinaryOperator<T> reduction)Shortcut forreducible(reduction).suspendedWhen(condition).default EventStream<T>EventStream. repeatOn(EventStream<?> impulse)Returns a new event stream that emits all the events emitted from this stream and in addition to that re-emits the most recent event on every event emitted fromimpulse.static <O extends javafx.beans.Observable>
EventStream<O>EventStreams. repeatOnInvalidation(O observable)Creates an event stream that emits the given observable immediately for every subscriber and re-emits it on every subsequent invalidation of the observable.static EventStream<?>EventStreams. restartableTicks(java.time.Duration interval, EventStream<?> impulse)Returns aEventStreams.ticks(Duration)EventStream whose timer restarts whenever impulse emits an event.static EventStream<?>EventStreams. restartableTicks0(java.time.Duration interval, EventStream<?> impulse)Returns aEventStreams.ticks0(Duration)EventStream whose timer restarts whenever impulse emits an event.default EventStream<T>EventStream. retainLatestBetween(EventStream<?> ticks)Equivalent toemitOn(EventStream).default EventStream<T>EventStream. retainLatestUntilLater()Returns an event stream that, when an event is emitted from this stream, stores the event for emission and schedules emission usingPlatform.runLater(Runnable), if not already scheduled.default EventStream<T>EventStream. retainLatestUntilLater(java.util.concurrent.Executor eventThreadExecutor)Version ofretainLatestUntilLater()for event streams that don't live on the JavaFX application thread.default EventStream<T>EventStream. retainLatestWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition)Shortcut forforgetful().suspendedWhen(condition).static <T> EventStream<ListModification<? extends T>>EventStreams. simpleChangesOf(javafx.collections.ObservableList<T> list)Use only when the subscriber does not causelistmodification of the underlying list.static <C extends java.util.Collection<?> & javafx.beans.Observable>
EventStream<java.lang.Integer>EventStreams. sizeOf(C collection)static EventStream<java.lang.Integer>EventStreams. sizeOf(javafx.collections.ObservableMap<?,?> map)default EventStream<Either<T,T>>EventStream. splitBy(java.util.function.Predicate<? super T> test)Returns a new event stream that, for eventeemitted from this stream, emitsleft(e)ifepasses the given test, and emitsright(e)ifedoes not pass the test.default <U> EventStream<U>EventStream. supply(java.util.function.Supplier<? extends U> f)Returns an event stream that emits a value obtained from the given supplier every time this event stream emits a value.default <U> EventStream<U>EventStream. supply(U value)Returns an event stream that emits the given constant value every time this stream emits a value.default EventStream<T>EventStream. suppressWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition)Shortcut forsuppressible().suspendedWhen(condition).default EventStream<T>SuspendableEventStream. suspendedWhen(javafx.beans.value.ObservableValue<java.lang.Boolean> condition)Returns an event stream that is suspended when the givenconditionistrueand emits normally whenconditionisfalse.default EventStream<T>EventStream. threadBridge(java.util.concurrent.Executor sourceThreadExecutor, java.util.concurrent.Executor targetThreadExecutor)Transfers events from one thread to another.default EventStream<T>EventStream. threadBridgeFromFx(java.util.concurrent.Executor targetThreadExecutor)Transfers events from the JavaFX application thread to another thread.default EventStream<T>EventStream. threadBridgeToFx(java.util.concurrent.Executor sourceThreadExecutor)Transfers events to the JavaFX application thread.static EventStream<?>EventStreams. ticks(java.time.Duration interval)Returns an event stream that emits periodic ticks.static EventStream<?>EventStreams. ticks(java.time.Duration interval, java.util.concurrent.ScheduledExecutorService scheduler, java.util.concurrent.Executor eventThreadExecutor)Returns an event stream that emits periodic ticks on the giveneventThreadExecutor.static EventStream<?>EventStreams. ticks0(java.time.Duration interval)Returns an event stream that emits periodic ticks.EventStream<O>StatefulStreamBuilderImpl. toEventStream()EventStream<O>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.EventStream<S>ObservableStateBuilderImpl. toStateStream()EventStream<S>StateMachine.ObservableStateBuilder. toStateStream()Returns an event stream that emits the current state of the state machine every time it changes.static <T> EventStream<T>EventStreams. valuesOf(javafx.beans.value.ObservableValue<T> observable)Creates an event stream that emits the value of the givenObservableValueimmediately for every subscriber and then on every change.default EventStream<T>EventStream. withDefaultEvent(T defaultEvent)Returns an event stream that immediately emits its event when something subscribes to it.EventStream<?>SuspendableBoolean. yeses()static <A,B>
EventStream<Tuple2<A,B>>EventStreams. zip(EventStream<A> srcA, EventStream<B> srcB)static <A,B,C>
EventStream<Tuple3<A,B,C>>EventStreams. zip(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC)Methods in org.reactfx that return types with arguments of type EventStream Modifier and Type Method Description default Tuple2<EventStream<T>,EventStream<T>>EventStream. fork(java.util.function.Predicate<? super T> test)Returns two event streams, the first one emitting events of this stream that satisfy the giventestand the second one emitting events of this stream that do not satisfy the test.default Tuple2<EventStream<T>,EventStream<T>>EventStream. fork(java.util.function.Predicate<? super T> test)Returns two event streams, the first one emitting events of this stream that satisfy the giventestand the second one emitting events of this stream that do not satisfy the test.static <L,R>
Tuple2<EventStream<L>,EventStream<R>>EventStreams. fork(EventStream<? extends Either<L,R>> stream)static <L,R>
Tuple2<EventStream<L>,EventStream<R>>EventStreams. fork(EventStream<? extends Either<L,R>> stream)Methods in org.reactfx with parameters of type EventStream Modifier and Type Method Description default <A> EventStream<T>EventStream. accumulateBetween(EventStream<?> ticks, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)Returns an event stream that, when an event arrives from this stream, transforms it into a cumulative value using theinitialTransformationfunction.default <A> EventStream<T>EventStream. accumulateBetween(EventStream<?> ticks, java.util.function.Supplier<? extends A> unit, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)A variation onaccumulateBetween(EventStream, Function, BiFunction, Function)to use when it is more convenient to provide a unit element of the accumulation than to transform the initial event to a cumulative value.static <T> AwaitingEventStream<Try<T>>Await. awaitCompletionStage(EventStream<java.util.concurrent.CompletionStage<T>> source, java.util.concurrent.Executor clientThreadExecutor)static <T> AwaitingEventStream<Try<T>>AwaitLatest. awaitCompletionStage(EventStream<java.util.concurrent.CompletionStage<T>> source, java.util.concurrent.Executor clientThreadExecutor)static <T> AwaitingEventStream<Try<T>>AwaitLatest. awaitCompletionStage(EventStream<java.util.concurrent.CompletionStage<T>> source, EventStream<?> cancelImpulse, java.util.concurrent.Executor clientThreadExecutor)default AwaitingEventStream<Try<T>>CompletionStageStream. awaitLatest(EventStream<?> canceller)Similar toCompletionStageStream.awaitLatest(), with one addition: When an event is emitted fromcanceller, if the completion stage most recently emitted from this stream has not yet completed, its result is discarded (i.e.default AwaitingEventStream<Try<T>>CompletionStageStream. awaitLatest(EventStream<?> canceller, java.util.concurrent.Executor clientThreadExecutor)A variant ofCompletionStageStream.awaitLatest(EventStream)for streams that do not live on the JavaFX application thread.default AwaitingEventStream<Try<T>>TaskStream. awaitLatest(EventStream<?> canceller)Similar toTaskStream.awaitLatest(), with one addition: When an event is emitted fromcanceller, if the task most recently emitted from this stream has not yet completed, it is cancelled and its result discarded (i.e.static <T> AwaitingEventStream<Try<T>>Await. awaitTask(EventStream<javafx.concurrent.Task<T>> source)static <T> AwaitingEventStream<Try<T>>AwaitLatest. awaitTask(EventStream<javafx.concurrent.Task<T>> source)static <T> AwaitingEventStream<Try<T>>AwaitLatest. awaitTask(EventStream<javafx.concurrent.Task<T>> source, EventStream<?> cancelImpulse)static <A,B>
EventStream<Tuple2<A,B>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB)static <A,B,C>
EventStream<Tuple3<A,B,C>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC)static <A,B,C,D>
EventStream<Tuple4<A,B,C,D>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD)static <A,B,C,D,E>
EventStream<Tuple5<A,B,C,D,E>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD, EventStream<E> srcE)static <A,B,C,D,E,F>
EventStream<Tuple6<A,B,C,D,E,F>>EventStreams. combine(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC, EventStream<D> srcD, EventStream<E> srcE, EventStream<F> srcF)SubscriptionConnectable. connectTo(EventStream<? extends T> source)Connects this connectable object tosourceevent stream.SubscriptionConnectableEventSource. connectTo(EventStream<? extends T> input)default <I> EventStream<Tuple2<T,I>>EventStream. emitBothOnEach(EventStream<I> impulse)Similar toemitOnEach(EventStream), but also includes the impulse in the emitted value.default EventStream<T>EventStream. emitOn(EventStream<?> impulse)Returns a new event stream that, when an event arrives from theimpulsestream, emits the most recent event emitted by this stream.default EventStream<T>EventStream. emitOnEach(EventStream<?> impulse)Returns a new event stream that, when an event arrives from theimpulsestream, emits the most recent event emitted by this stream.default SubscriptionEventSink. feedFrom(EventStream<? extends T> source)Starts pushing all events emitted bysourceto this event sink.static <L,R>
Tuple2<EventStream<L>,EventStream<R>>EventStreams. fork(EventStream<? extends Either<L,R>> stream)static <T> EventStream<T>EventStreams. merge(EventStream<? extends T>... inputs)Returns an event stream that emits all the events emitted from any of theinputs.<I> StateMachine.ObservableStateBuilderOn<S,I>InitialStateImpl. on(EventStream<I> input)<I> StateMachine.ObservableStateBuilderOn<S,I>ObservableStateBuilderImpl. on(EventStream<I> input)<I> StateMachine.StatefulStreamBuilderOn<S,O,I>StatefulStreamBuilderImpl. on(EventStream<I> input)<I> StateMachine.ObservableStateBuilderOn<S,I>StateMachine.InitialState. on(EventStream<I> input)<I> StateMachine.ObservableStateBuilderOn<S,I>StateMachine.ObservableStateBuilder. on(EventStream<I> input)<I> StateMachine.StatefulStreamBuilderOn<S,O,I>StateMachine.StatefulStreamBuilder. on(EventStream<I> input)default <U> EventStream<Either<T,U>>EventStream. or(EventStream<? extends U> right)Returns an event stream that emits all the events emitted from either this stream or therightstream.default EventStream<T>EventStream. queueBetween(EventStream<?> ticks)Returns an event stream that, when an event arrives from this stream, enqueues it for emission.default EventStream<T>EventStream. reduceBetween(EventStream<?> ticks, java.util.function.BinaryOperator<T> reduction)Returns an event stream that, when an event arrives from this stream, stores it for emission.default EventStream<T>EventStream. repeatOn(EventStream<?> impulse)Returns a new event stream that emits all the events emitted from this stream and in addition to that re-emits the most recent event on every event emitted fromimpulse.static EventStream<?>EventStreams. restartableTicks(java.time.Duration interval, EventStream<?> impulse)Returns aEventStreams.ticks(Duration)EventStream whose timer restarts whenever impulse emits an event.static EventStream<?>EventStreams. restartableTicks0(java.time.Duration interval, EventStream<?> impulse)Returns aEventStreams.ticks0(Duration)EventStream whose timer restarts whenever impulse emits an event.default EventStream<T>EventStream. retainLatestBetween(EventStream<?> ticks)Equivalent toemitOn(EventStream).(package private) SubscriptionLimitedInvocationSubscriber. subscribeTo(EventStream<? extends T> stream)private SubscriptionConnectableEventSource. subscribeToInput(EventStream<? extends T> input)static <A,B>
EventStream<Tuple2<A,B>>EventStreams. zip(EventStream<A> srcA, EventStream<B> srcB)static <A,B,C>
EventStream<Tuple3<A,B,C>>EventStreams. zip(EventStream<A> srcA, EventStream<B> srcB, EventStream<C> srcC)Method parameters in org.reactfx with type arguments of type EventStream Modifier and Type Method Description default <U> EventStream<U>EventStream. flatMap(java.util.function.Function<? super T,? extends EventStream<U>> f)Returns a new event stream that, for each event x emitted from this stream, obtains the event stream f(x) and keeps emitting its events until the next event is emitted from this stream.static <T> EventStream<T>EventStreams. merge(javafx.collections.ObservableSet<? extends EventStream<T>> set)Returns an event stream that emits all the events emitted from any of the event streams in the given observable set.static <T,U>
EventStream<U>EventStreams. merge(javafx.collections.ObservableSet<? extends T> set, java.util.function.Function<? super T,? extends EventStream<U>> f)A more general version ofEventStreams.merge(ObservableSet)for a set of arbitrary element type and a function to obtain an event stream from the element.Constructors in org.reactfx with parameters of type EventStream Constructor Description AbstractReducibleEventStream(EventStream<T> source, NotificationAccumulator<java.util.function.Consumer<? super T>,T,T> pn)AccumulateBetweenStream(EventStream<T> source, EventStream<?> ticks, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction)AccumulateUntilLaterStream(EventStream<T> source, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,java.util.List<T>> deconstruction, java.util.concurrent.Executor eventThreadExecutor)AccumulatingStream(EventStream<T> input, java.util.function.Function<? super T,? extends U> initial, java.util.function.BiFunction<? super U,? super T,? extends U> reduction)AccumulativeEventStream(EventStream<T> source, java.util.function.Function<? super T,? extends A> initialTransformation, java.util.function.BiFunction<? super A,? super T,? extends A> accumulation, java.util.function.Function<? super A,AccumulatorSize> size, java.util.function.Function<? super A,? extends T> head, java.util.function.Function<? super A,? extends A> tail)Await(EventStream<F> source, java.util.function.BiConsumer<F,TriConsumer<T,java.lang.Throwable,java.lang.Boolean>> addCompletionHandler)AwaitLatest(EventStream<F> source, EventStream<?> cancelImpulse, java.util.function.Consumer<F> canceller, java.util.function.BiConsumer<F,TriConsumer<T,java.lang.Throwable,java.lang.Boolean>> addCompletionHandler)DefaultEventStream(EventStream<T> input, T initial)DistinctStream(EventStream<T> input)EmissionBuilder(EventStream<I> input, java.util.function.BiFunction<? super S,? super I,? extends java.util.Optional<O>> f)EmitBothOnEachStream(EventStream<A> source, EventStream<I> impulse)EmitOnEachStream(EventStream<T> source, EventStream<?> impulse)EmitOnStream(EventStream<T> source, EventStream<?> impulse)FilterMapStream(EventStream<T> source, java.util.function.Predicate<? super T> predicate, java.util.function.Function<? super T,? extends U> f)FilterStream(EventStream<T> source, java.util.function.Predicate<? super T> predicate)FlatMapOptStream(EventStream<T> src, java.util.function.Function<? super T,java.util.Optional<U>> f)FlatMapStream(EventStream<T> src, java.util.function.Function<? super T,? extends EventStream<U>> f)ForgetfulEventStream(EventStream<T> source)HookStream(EventStream<T> source, java.util.function.Consumer<? super T> sideEffect)InputHandlerBuilder(EventStream<I> input, java.util.function.BiFunction<? super S,? super I,? extends TGT> f)LatestNStream(EventStream<T> source, int n)MappedStream(EventStream<T> input, java.util.function.Function<? super T,? extends U> f)MappedToCompletionStageStream(EventStream<T> input, java.util.function.Function<? super T,java.util.concurrent.CompletionStage<U>> f)MappedToTaskStream(EventStream<T> input, java.util.function.Function<? super T,javafx.concurrent.Task<U>> f)ObservableStateBuilderOnImpl(S initialState, LL<TransitionBuilder<S>> transitions, EventStream<I> input)PausableEventStream(EventStream<T> source)RecursiveStream(EventStream<T> input, NotificationAccumulator<java.util.function.Consumer<? super T>,T,?> pn)ReducibleEventStream(EventStream<T> source, java.util.function.BinaryOperator<T> reduction)RepeatOnStream(EventStream<T> source, EventStream<?> impulse)StatefulStreamBuilderOnImpl(S initialState, LL<TransitionBuilder<S>> transitions, LL<EmissionBuilder<S,O>> emissions, LL<TransmissionBuilder<S,O>> transmissions, EventStream<I> input)StreamBinding(EventStream<T> input, T initialValue)SuccessionReducingStream(EventStream<I> input, java.util.function.Function<? super I,? extends O> initial, java.util.function.BiFunction<? super O,? super I,? extends O> reduction, java.util.function.Function<java.lang.Runnable,Timer> timerFactory)SuppressibleEventStream(EventStream<T> source)SuspendableBase(EventStream<T> input, NotificationAccumulator<O,T,A> pn)SuspendableEventStreamBase(EventStream<T> source, NotificationAccumulator<java.util.function.Consumer<? super T>,T,A> pn)SuspenderStreamImpl(EventStream<T> source, S suspendable)ThenAccumulateForStream(EventStream<T> input, java.util.function.Function<? super T,? extends A> initial, java.util.function.BiFunction<? super A,? super T,? extends A> reduction, java.util.function.Function<? super A,java.util.List<T>> deconstruction, java.util.function.Function<java.lang.Runnable,Timer> timerFactory)ThreadBridge(EventStream<T> input, java.util.concurrent.Executor sourceThreadExecutor, java.util.concurrent.Executor targetThreadExecutor)TransitionBuilder(EventStream<I> input, java.util.function.BiFunction<? super S,? super I,? extends S> f)TransmissionBuilder(EventStream<I> input, java.util.function.BiFunction<? super S,? super I,? extends Tuple2<S,java.util.Optional<O>>> f)Constructor parameters in org.reactfx with type arguments of type EventStream Constructor Description FlatMapStream(EventStream<T> src, java.util.function.Function<? super T,? extends EventStream<U>> f) -
Uses of EventStream in org.reactfx.collection
Methods in org.reactfx.collection that return EventStream Modifier and Type Method Description default EventStream<ListChange<? extends E>>LiveList. changes()static <E> EventStream<ListChange<? extends E>>LiveList. changesOf(javafx.collections.ObservableList<E> list)default EventStream<ListModification<? extends E>>LiveList. modifications()default EventStream<QuasiListChange<? extends E>>LiveList. quasiChanges()static <E> EventStream<QuasiListChange<? extends E>>LiveList. quasiChangesOf(javafx.collections.ObservableList<E> list)default EventStream<QuasiListModification<? extends E>>LiveList. quasiModifications() -
Uses of EventStream in org.reactfx.value
Methods in org.reactfx.value that return EventStream Modifier and Type Method Description default EventStream<Change<T>>Val. changes()Returns a stream of changed values, which emits the changed value (i.e.default EventStream<T>Val. invalidations()Returns a stream of invalidated values, which emits the invalidated value (i.e.default EventStream<T>Val. values()Returns a stream of values of this Val.Methods in org.reactfx.value with parameters of type EventStream Modifier and Type Method Description static <T> Val<T>Val. create(java.util.function.Supplier<? extends T> computeValue, EventStream<?> invalidations)
-