T - the type of the expected valuespublic static final class Select.CastToken<T> extends java.lang.Object implements Observable<T>
| Modifier and Type | Field and Description |
|---|---|
protected Observable<?> |
source |
protected java.lang.Class<T> |
token |
| Constructor and Description |
|---|
CastToken(Observable<?> source,
java.lang.Class<T> token)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<?> source
protected final java.lang.Class<T> token
public CastToken(Observable<?> source, java.lang.Class<T> token)
source - the source of unknown elementstoken - the token to test agains the elements@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