T - the left element typeU - the right element typeV - the result element typepublic static final class CombineLatest.NullStart<T,U,V> extends java.lang.Object implements Observable<V>
Exception semantics: if any stream throws an exception, the output stream throws an exception and all registrations are terminated.
Completion semantics: The output stream terminates after both streams terminate.
Note that at the beginning, when the left or right fires first, the selector function
will receive (value, null) or (null, value). If you want to react only in cases when both have sent
a value, use the CombineLatest.Sent class and combineLatest operator.
| Constructor and Description |
|---|
NullStart(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.
|
public NullStart(Observable<? extends T> left, Observable<? extends U> right, Func2<? super T,? super U,? extends V> selector)
left - the left streamright - the right streamselector - the function which combines values from both streams and returns a new value@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