Class FlowableElementAtMaybePublisher<T>

java.lang.Object
io.reactivex.rxjava3.core.Maybe<T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybePublisher<T>
Type Parameters:
T - the element type of the source
All Implemented Interfaces:
MaybeSource<T>

public final class FlowableElementAtMaybePublisher<T> extends Maybe<T>
Emits the indexth element from a Publisher as a Maybe.
Since:
3.0.0
  • Field Details

    • source

      final org.reactivestreams.Publisher<T> source
    • index

      final long index
  • Constructor Details

    • FlowableElementAtMaybePublisher

      public FlowableElementAtMaybePublisher(org.reactivestreams.Publisher<T> source, long index)
  • Method Details

    • 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