Top Description Inners Fields Constructors Methods
io.reactivex.rxjava3.internal.operators.maybe

public final Class MaybeDoOnLifecycle<T>

extends AbstractMaybeWithUpstream<T, T>
Class Inheritance
Type Parameters
<T>
the element type of the flow
Imports
io.reactivex.rxjava3.annotations.NonNull, io.reactivex.rxjava3.core.*, io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.exceptions.Exceptions, io.reactivex.rxjava3.functions.*, io.reactivex.rxjava3.internal.disposables.*, io.reactivex.rxjava3.plugins.RxJavaPlugins

Invokes callbacks upon onSubscribe from upstream and dispose from downstream.
Since
3.0.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Action
pack-priv final Consumer<? super Disposable>
Inherited from io.reactivex.rxjava3.internal.operators.maybe.AbstractMaybeWithUpstream:
source

Constructor Summary

AccessConstructor and Description
public
MaybeDoOnLifecycle(Maybe<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Summary

Modifier and TypeMethod and Description
protected void
subscribeActual(MaybeObserver<? super T> observer)

Inherited from io.reactivex.rxjava3.internal.operators.maybe.AbstractMaybeWithUpstream:
source

Field Detail

onDisposeback to summary
pack-priv final Action onDispose
onSubscribeback to summary
pack-priv final Consumer<? super Disposable> onSubscribe

Constructor Detail

MaybeDoOnLifecycleback to summary
public MaybeDoOnLifecycle(Maybe<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Detail

subscribeActualback to summary
protected void subscribeActual(MaybeObserver<? super T> observer)
Annotations
@Override
io.reactivex.rxjava3.internal.operators.maybe back to summary

pack-priv final Class MaybeDoOnLifecycle.MaybeLifecycleObserver<T>

extends Object
implements MaybeObserver<T>, Disposable
Class Inheritance
  • java.lang.Object
  • io.reactivex.rxjava3.internal.operators.maybe.MaybeDoOnLifecycle.MaybeLifecycleObserver
All Implemented Interfaces
io.reactivex.rxjava3.disposables.Disposable, io.reactivex.rxjava3.core.MaybeObserver

Field Summary

Modifier and TypeField and Description
pack-priv final MaybeObserver<? super T>
pack-priv final Action
pack-priv final Consumer<? super Disposable>
pack-priv Disposable

Constructor Summary

AccessConstructor and Description
pack-priv
MaybeLifecycleObserver(MaybeObserver<? super T> downstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.
public boolean
isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.
public void
onComplete()

Implements io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Called once the deferred computation completes normally.
public void
public void
public void
onSuccess(T
the item emitted by the Maybe
t
)

Implements io.reactivex.rxjava3.core.MaybeObserver.onSuccess.

Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

downstreamback to summary
pack-priv final MaybeObserver<? super T> downstream
onDisposeback to summary
pack-priv final Action onDispose
onSubscribeback to summary
pack-priv final Consumer<? super Disposable> onSubscribe
upstreamback to summary
pack-priv Disposable upstream

Constructor Detail

MaybeLifecycleObserverback to summary
pack-priv MaybeLifecycleObserver(MaybeObserver<? super T> downstream, Consumer<? super Disposable> onSubscribe, Action onDispose)

Method Detail

disposeback to summary
public void dispose()

Implements io.reactivex.rxjava3.disposables.Disposable.dispose.

Doc from io.reactivex.rxjava3.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.

Annotations
@Override
isDisposedback to summary
public boolean isDisposed()

Implements io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Doc from io.reactivex.rxjava3.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.

Returns:boolean

true if this resource has been disposed

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Doc from io.reactivex.rxjava3.core.MaybeObserver.onComplete.

Called once the deferred computation completes normally.

Annotations
@Override
onErrorback to summary
public void onError(@NonNull Throwable e)
Annotations
@Override
onSubscribeback to summary
public void onSubscribe(@NonNull Disposable d)
Annotations
@Override
onSuccessback to summary
public void onSuccess(T t)

Implements io.reactivex.rxjava3.core.MaybeObserver.onSuccess.

Doc from io.reactivex.rxjava3.core.MaybeObserver.onSuccess.

Notifies the MaybeObserver with one item and that the Maybe has finished sending push-based notifications.

The Maybe will not call this method if it calls onError.

Parameters
t:T

the item emitted by the Maybe

Annotations
@Override