Class MaybeIgnoreElementCompletable<T>

java.lang.Object
io.reactivex.rxjava3.core.Completable
io.reactivex.rxjava3.internal.operators.maybe.MaybeIgnoreElementCompletable<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
CompletableSource, FuseToMaybe<T>

public final class MaybeIgnoreElementCompletable<T> extends Completable implements FuseToMaybe<T>
Turns an onSuccess into an onComplete, onError and onComplete is relayed as is.
  • Field Details

  • Constructor Details

    • MaybeIgnoreElementCompletable

      public MaybeIgnoreElementCompletable(MaybeSource<T> source)
  • Method Details

    • subscribeActual

      protected void subscribeActual(CompletableObserver observer)
      Description copied from class: Completable
      Implement this method to handle the incoming CompletableObservers and perform the business logic in your operator.

      There is no need to call any of the plugin hooks on the current Completable instance or the CompletableObserver; all hooks and basic safeguards have been applied by Completable.subscribe(CompletableObserver) before this method gets called.

      Specified by:
      subscribeActual in class Completable
      Parameters:
      observer - the CompletableObserver instance, never null
    • fuseToMaybe

      public Maybe<T> fuseToMaybe()
      Description copied from interface: FuseToMaybe
      Returns a (direct) Maybe for the operator.

      The implementation should handle the necessary RxJavaPlugins wrapping.

      Specified by:
      fuseToMaybe in interface FuseToMaybe<T>
      Returns:
      the Maybe instance