Class MaybeIsEmptySingle<T>

java.lang.Object
io.reactivex.rxjava3.core.Single<Boolean>
io.reactivex.rxjava3.internal.operators.maybe.MaybeIsEmptySingle<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
SingleSource<Boolean>, FuseToMaybe<Boolean>, HasUpstreamMaybeSource<T>

public final class MaybeIsEmptySingle<T> extends Single<Boolean> implements HasUpstreamMaybeSource<T>, FuseToMaybe<Boolean>
Signals true if the source Maybe signals onComplete, signals false if the source Maybe signals onSuccess.
  • Field Details

  • Constructor Details

    • MaybeIsEmptySingle

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

    • source

      public MaybeSource<T> source()
      Description copied from interface: HasUpstreamMaybeSource
      Returns the upstream source of this Maybe.

      Allows discovering the chain of observables.

      Specified by:
      source in interface HasUpstreamMaybeSource<T>
      Returns:
      the source MaybeSource
    • fuseToMaybe

      public Maybe<Boolean> 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
    • subscribeActual

      protected void subscribeActual(SingleObserver<? super Boolean> observer)
      Description copied from class: Single
      Implement this method in subclasses to handle the incoming SingleObservers.

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

      Specified by:
      subscribeActual in class Single<Boolean>
      Parameters:
      observer - the SingleObserver to handle, not null