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 Maybe |
| 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 Maybe<T> source | |
| MaybeMapOptional | back to summary |
|---|---|
| public MaybeMapOptional(Maybe<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 | MapOptionalMaybeObserver(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 | 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.
|
| 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 | |
| MapOptionalMaybeObserver | back to summary |
|---|---|
| pack-priv MapOptionalMaybeObserver(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.
| |
| 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
| |