| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final T | |
| pack-priv final Callable | |
| pack-priv final CompletableSource |
| Access | Constructor and Description |
|---|---|
| public | CompletableToSingle(CompletableSource source, Callable<? extends T> completionValueSupplier, T completionValue)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | subscribeActual(final SingleObserver<? super T>
the SingleObserver to handle, not null observer)Implements abstract io. SingleObservers.
|
| completionValue | back to summary |
|---|---|
| pack-priv final T completionValue | |
| completionValueSupplier | back to summary |
|---|---|
| pack-priv final Callable<? extends T> completionValueSupplier | |
| source | back to summary |
|---|---|
| pack-priv final CompletableSource source | |
| CompletableToSingle | back to summary |
|---|---|
| public CompletableToSingle(CompletableSource source, Callable<? extends T> completionValueSupplier, T completionValue) | |
| subscribeActual | back to summary |
|---|---|
| protected void subscribeActual(final SingleObserver<? super T> observer) Implements abstract io. Doc from io. Implement this method in subclasses to handle the incoming There is no need to call any of the plugin hooks on the current
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SingleObserver |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onComplete()
Implements io. |
| public void | onError(Throwable
the exception, not null. e)Implements io. |
| public void | onSubscribe(Disposable
the Disposable instance to call dispose on for cancellation, not null d)Implements io. |
| observer | back to summary |
|---|---|
| private final SingleObserver<? super T> observer | |
| ToSingle | back to summary |
|---|---|
| pack-priv ToSingle(SingleObserver<? super T> observer) | |
| 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) Implements io. Doc from io. Called once if the deferred computation 'throws' an exception. | |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Disposable d) Implements io. Doc from io. Called once by the Completable to set a Disposable on this instance which then can be used to cancel the subscription at any time.
| |