Class FlowableReduceMaybe<T>

java.lang.Object
io.reactivex.rxjava3.core.Maybe<T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableReduceMaybe<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
MaybeSource<T>, FuseToFlowable<T>, HasUpstreamPublisher<T>

public final class FlowableReduceMaybe<T> extends Maybe<T> implements HasUpstreamPublisher<T>, FuseToFlowable<T>
Reduce a Flowable into a single value exposed as Single or signal NoSuchElementException.
  • Field Details

  • Constructor Details

  • Method Details

    • source

      public org.reactivestreams.Publisher<T> source()
      Description copied from interface: HasUpstreamPublisher
      Returns the source Publisher.

      This method is intended to discover the assembly graph of sequences.

      Specified by:
      source in interface HasUpstreamPublisher<T>
      Returns:
      the source Publisher
    • fuseToFlowable

      public Flowable<T> fuseToFlowable()
      Description copied from interface: FuseToFlowable
      Returns a (direct) Flowable for the operator.

      The implementation should handle the necessary RxJavaPlugins wrapping.

      Specified by:
      fuseToFlowable in interface FuseToFlowable<T>
      Returns:
      the Flowable instance
    • subscribeActual

      protected void subscribeActual(MaybeObserver<? super T> observer)
      Description copied from class: Maybe
      Implement this method in subclasses to handle the incoming MaybeObservers.

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

      Specified by:
      subscribeActual in class Maybe<T>
      Parameters:
      observer - the MaybeObserver to handle, not null