rx.Observable#defaultIfEmpty(Object) except instead of one item being emitted when
empty, the results of the given Observable will be emitted.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Observable | |
| pack-priv final Observable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| alternate | back to summary |
|---|---|
| pack-priv final Observable<? extends T> alternate | |
| source | back to summary |
|---|---|
| pack-priv final Observable<? extends T> source | |
| OnSubscribeSwitchIfEmpty | back to summary |
|---|---|
| public OnSubscribeSwitchIfEmpty(Observable<? extends T> source, Observable<? extends T> alternate) | |
| call | back to summary |
|---|---|
| public void call(Subscriber<? super T> child) Implements rx.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ProducerArbiter | |
| private final Subscriber |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| public void | setProducer(final Producer
producer to be used by this subscriber or the other subscriber
(or recursively its other subscriber) to make requests from producer)Overrides rx. Subscriber(Subscriber) or
Subscriber(Subscriber, boolean)) then this method calls
setProducer on the other subscriber.
|
| arbiter | back to summary |
|---|---|
| private final ProducerArbiter arbiter | |
| child | back to summary |
|---|---|
| private final Subscriber<? super T> child | |
| AlternateSubscriber | back to summary |
|---|---|
| pack-priv AlternateSubscriber(Subscriber<? super T> child, ProducerArbiter arbiter) | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| setProducer | back to summary |
|---|---|
| public void setProducer(final Producer producer) Overrides rx. Doc from rx. If other subscriber is set (by calling constructor
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| private final Observable | |
| private final ProducerArbiter | |
| private final Subscriber | |
| private boolean | |
| private final SerialSubscription | |
| pack-priv final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv | ParentSubscriber(Subscriber<? super T> child, final SerialSubscription serial, ProducerArbiter arbiter, Observable<? extends T> alternate)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| public void | setProducer(final Producer
producer to be used by this subscriber or the other subscriber
(or recursively its other subscriber) to make requests from producer)Overrides rx. Subscriber(Subscriber) or
Subscriber(Subscriber, boolean)) then this method calls
setProducer on the other subscriber.
|
| pack-priv void |
| active | back to summary |
|---|---|
| pack-priv volatile boolean active | |
| alternate | back to summary |
|---|---|
| private final Observable<? extends T> alternate | |
| arbiter | back to summary |
|---|---|
| private final ProducerArbiter arbiter | |
| child | back to summary |
|---|---|
| private final Subscriber<? super T> child | |
| empty | back to summary |
|---|---|
| private boolean empty | |
| serial | back to summary |
|---|---|
| private final SerialSubscription serial | |
| wip | back to summary |
|---|---|
| pack-priv final AtomicInteger wip | |
| ParentSubscriber | back to summary |
|---|---|
| pack-priv ParentSubscriber(Subscriber<? super T> child, final SerialSubscription serial, ProducerArbiter arbiter, Observable<? extends T> alternate) | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |
| setProducer | back to summary |
|---|---|
| public void setProducer(final Producer producer) Overrides rx. Doc from rx. If other subscriber is set (by calling constructor
| |
| subscribe | back to summary |
|---|---|
| pack-priv void subscribe(Observable<? extends T> source) | |