T - the element typepublic static class Select.DefaultIfEmptyFunc<T> extends java.lang.Object implements Observable<T>
| Constructor and Description |
|---|
DefaultIfEmptyFunc(Observable<? extends T> source,
Func0<? extends T> defaultFunc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
public DefaultIfEmptyFunc(@Nonnull
Observable<? extends T> source,
@Nonnull
Func0<? extends T> defaultFunc)
source - the source sequence.defaultFunc - the default value producer@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