T - the left observable's element typeU - the right observable's element typeV - the result element typepublic static class Zip.TwoObservable<T,U,V> extends java.lang.Object implements Observable<V>
The resulting sequence terminates if no more pairs can be established, i.e., streams of length 1 and 2 zipped will produce only 1 item.
Exception semantics: errors from the source observable are propagated as-is.
| Modifier and Type | Field and Description |
|---|---|
protected Observable<? extends T> |
left |
protected Observable<? extends U> |
right |
protected Func2<? super T,? super U,? extends V> |
selector |
| Constructor and Description |
|---|
TwoObservable(Observable<? extends T> left,
Observable<? extends U> right,
Func2<? super T,? super U,? extends V> selector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super V> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<? extends T> left
protected final Observable<? extends U> right
public TwoObservable(Observable<? extends T> left, Observable<? extends U> right, Func2<? super T,? super U,? extends V> selector)
left - the first observableright - the second observableselector - the result selector@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super V> observer)
Observableregister in interface Observable<V>observer - the observer of Ts or any supertype of it