T - the source and result element typeU - the window's own type (ignored)public static class Windowing.WithClosing<T,U> extends java.lang.Object implements Observable<Observable<T>>
Exception semantics: exception thrown by the source or the windowClosingSelector's observable is propagated to both the outer and inner observable returned.
| Modifier and Type | Field and Description |
|---|---|
protected Observable<? extends T> |
source
The source observable.
|
protected Func0<? extends Observable<U>> |
windowClosingSelector
The window closing selector for each registerer.
|
| Constructor and Description |
|---|
WithClosing(Observable<? extends T> source,
Func0<? extends Observable<U>> windowClosingSelector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super Observable<T>> observer)
Registers an observer for the notification of Ts.
|
@Nonnull protected final Observable<? extends T> source
@Nonnull protected final Func0<? extends Observable<U>> windowClosingSelector
public WithClosing(@Nonnull
Observable<? extends T> source,
@Nonnull
Func0<? extends Observable<U>> windowClosingSelector)
source - the source sequencewindowClosingSelector - the window selector@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super Observable<T>> observer)
Observableregister in interface Observable<Observable<T>>observer - the observer of Ts or any supertype of it