Class FlowableToListSingle<T,U extends Collection<? super T>>

java.lang.Object
io.reactivex.rxjava3.core.Single<U>
io.reactivex.rxjava3.internal.operators.flowable.FlowableToListSingle<T,U>
All Implemented Interfaces:
SingleSource<U>, FuseToFlowable<U>

public final class FlowableToListSingle<T,U extends Collection<? super T>> extends Single<U> implements FuseToFlowable<U>
  • Field Details

  • Constructor Details

    • FlowableToListSingle

      public FlowableToListSingle(Flowable<T> source)
    • FlowableToListSingle

      public FlowableToListSingle(Flowable<T> source, Supplier<U> collectionSupplier)
  • Method Details

    • subscribeActual

      protected void subscribeActual(SingleObserver<? super U> 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<U extends Collection<? super T>>
      Parameters:
      observer - the SingleObserver to handle, not null
    • fuseToFlowable

      public Flowable<U> 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