Class ObservableElementAtSingle<T>

java.lang.Object
io.reactivex.rxjava3.core.Single<T>
io.reactivex.rxjava3.internal.operators.observable.ObservableElementAtSingle<T>
All Implemented Interfaces:
SingleSource<T>, FuseToObservable<T>

public final class ObservableElementAtSingle<T> extends Single<T> implements FuseToObservable<T>
  • Field Details

    • source

      final ObservableSource<T> source
    • index

      final long index
    • defaultValue

      final T defaultValue
  • Constructor Details

    • ObservableElementAtSingle

      public ObservableElementAtSingle(ObservableSource<T> source, long index, T defaultValue)
  • Method Details

    • subscribeActual

      public void subscribeActual(SingleObserver<? super T> t)
      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:
      t - the SingleObserver to handle, not null
    • fuseToObservable

      public Observable<T> fuseToObservable()
      Description copied from interface: FuseToObservable
      Returns a (direct) Observable for the operator.

      The implementation should handle the necessary RxJavaPlugins wrapping.

      Specified by:
      fuseToObservable in interface FuseToObservable<T>
      Returns:
      the Observable instance