|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.OperationDefaultIfEmpty
public class OperationDefaultIfEmpty
Returns the elements of the specified sequence or the specified default value in a singleton sequence if the sequence is empty.
| Constructor Summary | |
|---|---|
OperationDefaultIfEmpty()
|
|
| Method Summary | ||
|---|---|---|
static
|
defaultIfEmpty(Observable<? extends T> source,
T defaultValue)
Returns the elements of the specified sequence or the specified default value in a singleton sequence if the sequence is empty. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationDefaultIfEmpty()
| Method Detail |
|---|
public static <T> Observable.OnSubscribeFunc<T> defaultIfEmpty(Observable<? extends T> source,
T defaultValue)
source - The sequence to return the specified value for if it is empty.defaultValue - The value to return if the sequence is empty.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||