Optional and emits its non-empty value or completes.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Function | |
| pack-priv final Single |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, Optional<? extends R>> mapper | |
| source | back to summary |
|---|---|
| pack-priv final Single<T> source | |
| SingleMapOptional | back to summary |
|---|---|
| public SingleMapOptional(Single<T> source, Function<? super T, Optional<? extends R>> mapper) | |
| subscribeActual | back to summary |
|---|---|
protected void subscribeActual(MaybeObserver<? super R> observer)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final MaybeObserver | |
| pack-priv final Function | |
| pack-priv Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv | MapOptionalSingleObserver(MaybeObserver<? super R> downstream, Function<? super T, Optional<? extends R>> mapper)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements io. |
| public boolean | isDisposed()
Implements io. |
| public void | |
| public void | |
| public void | onSuccess(T
the item emitted by the value)SingleImplements io. SingleObserver with a single item and that the Single has finished sending
push-based notifications.
|
| downstream | back to summary |
|---|---|
| pack-priv final MaybeObserver<? super R> downstream | |
| mapper | back to summary |
|---|---|
| pack-priv final Function<? super T, Optional<? extends R>> mapper | |
| upstream | back to summary |
|---|---|
| pack-priv Disposable upstream | |
| MapOptionalSingleObserver | back to summary |
|---|---|
| pack-priv MapOptionalSingleObserver(MaybeObserver<? super R> downstream, Function<? super T, Optional<? extends R>> mapper) | |
| 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.
| |
| 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
| |