T - the element type to accumulatepublic static final class Aggregate.Scan<T> extends java.lang.Object implements Observable<T>
range(0, 5).accumulate((x, y) -> x + y) produces a sequence of [0, 1, 3, 6, 10];| Constructor and Description |
|---|
Scan(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.
|
@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