T - the type of the observed elementpublic final class Ambiguous<T> extends java.lang.Object implements Observable<T>
O3 = Amb(O1, O2) if O1 starts to submit events first, O3 will relay these events and events of O2 will be completely ignored| Constructor and Description |
|---|
Ambiguous(java.lang.Iterable<? extends Observable<? extends T>> sources)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public Ambiguous(java.lang.Iterable<? extends Observable<? extends T>> sources)
sources - the available source sequences@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it