Package rx.internal.operators
Class OperatorSwitchIfEmpty<T>
java.lang.Object
rx.internal.operators.OperatorSwitchIfEmpty<T>
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Func1<Subscriber<? super T>,
,Subscriber<? super T>> Function
,Observable.Operator<T,
T>
If the Observable completes without emitting any items, subscribe to an alternate Observable. Allows for similar
functionality to
Observable.defaultIfEmpty(Object)
except instead of one item being emitted when
empty, the results of the given Observable will be emitted.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
(package private) static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
alternate
-
-
Constructor Details
-
OperatorSwitchIfEmpty
-
-
Method Details
-
call
- Specified by:
call
in interfaceFunc1<Subscriber<? super T>,
Subscriber<? super T>>
-