defaultValue is null.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| pack-priv final MaybeSource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MaybeSource | source()
Implements io. |
| protected void |
| defaultValue | back to summary |
|---|---|
| pack-priv final T defaultValue | |
| source | back to summary |
|---|---|
| pack-priv final MaybeSource<T> source | |
| MaybeToSingle | back to summary |
|---|---|
| public MaybeToSingle(MaybeSource<T> source, T defaultValue) | |
| source | back to summary |
|---|---|
| public MaybeSource Implements io. Doc from io. Returns the upstream source of this Maybe. Allows discovering the chain of observables.
| |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(SingleObserver<? super T> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| pack-priv final SingleObserver | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | onComplete()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the value)MaybeImplements io. MaybeObserver with one item and that the Maybe has finished sending
push-based notifications.
|
| defaultValue | back to summary |
|---|---|
| pack-priv final T defaultValue | |
| downstream | back to summary |
|---|---|
| pack-priv final SingleObserver<? super T> downstream | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| ToSingleMaybeSubscriber | back to summary |
|---|---|
| pack-priv ToSingleMaybeSubscriber(SingleObserver<? super T> actual, T defaultValue) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements io. Doc from io. Dispose the resource, the operation should be idempotent.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements io. Doc from io. Returns true if this resource has been disposed.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Called once the deferred computation completes normally.
| |
| onError | back to summary |
|---|---|
public void onError(Throwable e)
| |
| onSubscribe | back to summary |
|---|---|
public void onSubscribe(Disposable d)
| |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(T value) Implements io. Doc from io. Notifies the
The
| |