Class ObservableElementAtMaybe<T>

java.lang.Object
io.reactivex.rxjava3.core.Maybe<T>
io.reactivex.rxjava3.internal.operators.observable.ObservableElementAtMaybe<T>
All Implemented Interfaces:
MaybeSource<T>, FuseToObservable<T>

public final class ObservableElementAtMaybe<T> extends Maybe<T> implements FuseToObservable<T>
  • Field Details

  • Constructor Details

    • ObservableElementAtMaybe

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

    • subscribeActual

      public void subscribeActual(MaybeObserver<? super T> t)
      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:
      t - the MaybeObserver 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