T - the element typepublic static final class Aggregate.Simple<T> extends java.lang.Object implements Observable<T>
If the source observable terminates before sending a single value, the output observable terminates as well. The first incoming value is relayed as-is.
| Constructor and Description |
|---|
Simple(Observable<? extends T> source,
Func2<? super T,? super T,? extends T> accumulator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public Simple(Observable<? extends T> source, Func2<? super T,? super T,? extends T> accumulator)
source - the source observableaccumulator - the accumulator function where the first parameter is the current accumulated value and the second is the now received value.@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it