T - the target element typepublic static class Where.OfType<T> extends java.lang.Object implements Observable<T>
| Constructor and Description |
|---|
OfType(Observable<?> source,
java.lang.Class<T> clazz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public OfType(@Nonnull
Observable<?> source,
@Nonnull
java.lang.Class<T> clazz)
source - the source sequenceclazz - the class token@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