T - the element type to accumulateU - the accumulation typepublic static final class Aggregate.ScanSeeded<U,T> extends java.lang.Object implements Observable<U>
range(0, 5).accumulate(1, (x, y) => x + y) produces a sequence of [1, 2, 4, 7, 11];| Constructor and Description |
|---|
ScanSeeded(Observable<? extends T> source,
U seed,
Func2<? super U,? super T,? extends U> accumulator)
Construction.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super U> observer)
Registers an observer for the notification of Ts.
|
@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super U> observer)
Observableregister in interface Observable<U>observer - the observer of Ts or any supertype of it