T - the common element typeU - the result element typepublic static class Zip.ManyObservables<T,U> extends java.lang.Object implements Observable<U>
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 | Class and Description |
|---|---|
static class |
Zip.ManyObservables.ItemObserver<T>
The individual line's observer.
|
| Modifier and Type | Field and Description |
|---|---|
protected Func1<? super java.util.List<T>,? extends U> |
selector |
protected java.lang.Iterable<? extends Observable<? extends T>> |
sources |
| Constructor and Description |
|---|
ManyObservables(java.lang.Iterable<? extends Observable<? extends T>> sources,
Func1<? super java.util.List<T>,? extends U> selector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super U> observer)
Registers an observer for the notification of Ts.
|
protected final java.lang.Iterable<? extends Observable<? extends T>> sources
public ManyObservables(java.lang.Iterable<? extends Observable<? extends T>> sources, Func1<? super java.util.List<T>,? extends U> selector)
sources - the sourcesselector - the result selector@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