T - the source and result element typeU - the window opening element typeV - the window closing element type.public static class Windowing.WithOpenClose<T,U,V> 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 |
protected Func1<? super U,? extends Observable<V>> |
windowClosingSelector |
protected Observable<? extends U> |
windowOpenings |
| Constructor and Description |
|---|
WithOpenClose(Observable<? extends T> source,
Observable<? extends U> windowOpenings,
Func1<? super U,? extends Observable<V>> 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.
|
protected Observable<? extends T> source
protected Observable<? extends U> windowOpenings
protected Func1<? super U,? extends Observable<V>> windowClosingSelector
public WithOpenClose(@Nonnull
Observable<? extends T> source,
@Nonnull
Observable<? extends U> windowOpenings,
@Nonnull
Func1<? super U,? extends Observable<V>> windowClosingSelector)
source - the source sequencewindowOpenings - the sequence producing the window-open eventswindowClosingSelector - the selector producing a window-closing sequence for
the pair window-open event.@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