Class FlowableElementAtSingle<T>

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

public final class FlowableElementAtSingle<T> extends Single<T> implements FuseToFlowable<T>
  • Field Details

    • source

      final Flowable<T> source
    • index

      final long index
    • defaultValue

      final T defaultValue
  • Constructor Details

    • FlowableElementAtSingle

      public FlowableElementAtSingle(Flowable<T> source, long index, T defaultValue)
  • Method Details

    • subscribeActual

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