T - the source and result element typeU - the buffer opening selector typeV - the buffer closing element type (irrelevant)public static class Buffer.WithOpenClose<T,U,V> extends java.lang.Object implements Observable<java.util.List<T>>
Exception semantics: if any Observable throws an error, the whole process terminates with error.
| Modifier and Type | Field and Description |
|---|---|
protected Observable<? extends T> |
source
The source sequence.
|
protected Func1<? super U,? extends Observable<V>> |
windowClosing
The function that returns a window-close observable for a value from the window-open.
|
protected Observable<? extends U> |
windowOpening
The window-open observable.
|
| Constructor and Description |
|---|
WithOpenClose(Observable<? extends T> source,
Observable<? extends U> windowOpening,
Func1<? super U,? extends Observable<V>> windowClosing)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super java.util.List<T>> observer)
Registers an observer for the notification of Ts.
|
protected Observable<? extends T> source
protected Observable<? extends U> windowOpening
protected Func1<? super U,? extends Observable<V>> windowClosing
public WithOpenClose(@Nonnull
Observable<? extends T> source,
@Nonnull
Observable<? extends U> windowOpening,
@Nonnull
Func1<? super U,? extends Observable<V>> windowClosing)
source - the source sequencewindowOpening - the window-open observablewindowClosing - the function that returns a window-close observable
for a value from the window-open@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super java.util.List<T>> observer)
Observableregister in interface Observable<java.util.List<T>>observer - the observer of Ts or any supertype of it