T - public static class Sample.ByObservable<T,U> extends java.lang.Object implements Observable<T>
Exception semantics: exceptions raised anywhere will terminate the sequences.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.Object |
EMPTY_SENTINEL
The empty sentinel indicator.
|
| Constructor and Description |
|---|
ByObservable(Observable<? extends T> source,
Observable<? extends U> sampler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
protected static final java.lang.Object EMPTY_SENTINEL
public ByObservable(Observable<? extends T> source, Observable<? extends U> sampler)
source - the source sequencesampler - the sampler sequence@Nonnull public java.io.Closeable register(Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it