Top Inners Fields Constructors Methods
io.reactivex.internal.operators.flowable

public final Class FlowableElementAtMaybe<T>

extends Maybe<T>
implements FuseToFlowable<T>
Class Inheritance
All Implemented Interfaces
io.reactivex.internal.fuseable.FuseToFlowable
Imports
org.reactivestreams.*, io.reactivex.*, io.reactivex.disposables.Disposable, io.reactivex.internal.fuseable.FuseToFlowable, io.reactivex.internal.subscriptions.SubscriptionHelper, io.reactivex.plugins.RxJavaPlugins

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final long
pack-priv final Flowable<T>

Constructor Summary

AccessConstructor and Description
public
FlowableElementAtMaybe(Flowable<T> source, long index)

Method Summary

Modifier and TypeMethod and Description
public Flowable<T>
fuseToFlowable()

Implements io.reactivex.internal.fuseable.FuseToFlowable.fuseToFlowable.

Returns a (direct) Flowable for the operator.
protected void
subscribeActual(MaybeObserver<? super T>
the MaybeObserver to handle, not null
observer
)

Implements abstract io.reactivex.Maybe.subscribeActual.

Implement this method in subclasses to handle the incoming MaybeObservers.
Inherited from io.reactivex.Maybe:
ambambArrayambWithasblockingGetblockingGetcachecastcomposeconcatconcatconcatconcatconcatconcatconcatArrayconcatArrayDelayErrorconcatArrayEagerconcatDelayErrorconcatDelayErrorconcatEagerconcatEagerconcatMapconcatWithcontainscountcreatedefaultIfEmptydeferdelaydelaydelaydelaySubscriptiondelaySubscriptiondelaySubscriptiondoAfterSuccessdoAfterTerminatedoFinallydoOnCompletedoOnDisposedoOnErrordoOnEventdoOnSubscribedoOnSuccessdoOnTerminateemptyerrorerrorfilterflatMapflatMapflatMapflatMapCompletableflatMapObservableflatMapPublisherflatMapSingleflatMapSingleElementflattenAsFlowableflattenAsObservablefromActionfromCallablefromCompletablefromFuturefromFuturefromRunnablefromSinglehideignoreElementisEmptyjustliftmapmaterializemergemergemergemergemergemergemergemergeArraymergeArrayDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeWithneverobserveOnofTypeonErrorCompleteonErrorCompleteonErrorResumeNextonErrorResumeNextonErrorReturnonErrorReturnItemonExceptionResumeNextonTerminateDetachrepeatrepeatrepeatUntilrepeatWhenretryretryretryretryretryretryUntilretryWhensequenceEqualsequenceEqualsubscribesubscribesubscribesubscribesubscribesubscribeOnsubscribeWithswitchIfEmptyswitchIfEmptytakeUntiltakeUntiltesttesttimeouttimeouttimeouttimeouttimeouttimeouttimeouttimeouttimertimertotoFlowabletoObservabletoSingletoSingleunsafeCreateunsubscribeOnusingusingwrapzipzipzipzipzipzipzipzipzipzipArrayzipWith

Field Detail

indexback to summary
pack-priv final long index
sourceback to summary
pack-priv final Flowable<T> source

Constructor Detail

FlowableElementAtMaybeback to summary
public FlowableElementAtMaybe(Flowable<T> source, long index)

Method Detail

fuseToFlowableback to summary
public Flowable<T> fuseToFlowable()

Implements io.reactivex.internal.fuseable.FuseToFlowable.fuseToFlowable.

Doc from io.reactivex.internal.fuseable.FuseToFlowable.fuseToFlowable.

Returns a (direct) Flowable for the operator.

The implementation should handle the necessary RxJavaPlugins wrapping.

Returns:Flowable<T>

the Flowable instance

Annotations
@Override
subscribeActualback to summary
protected void subscribeActual(MaybeObserver<? super T> observer)

Implements abstract io.reactivex.Maybe.subscribeActual.

Doc from io.reactivex.Maybe.subscribeActual.

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 subscribe(MaybeObserver) before this method gets called.

Parameters
observer:MaybeObserver<? super T>

the MaybeObserver to handle, not null

Annotations
@Override
io.reactivex.internal.operators.flowable back to summary

pack-priv final Class FlowableElementAtMaybe.ElementAtSubscriber<T>

extends Object
implements FlowableSubscriber<T>, Disposable
Class Inheritance
  • java.lang.Object
  • io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.ElementAtSubscriber
All Implemented Interfaces
io.reactivex.disposables.Disposable, io.reactivex.FlowableSubscriber, org.reactivestreams.Subscriber

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv boolean
pack-priv final MaybeObserver<? super T>
pack-priv final long
pack-priv Subscription

Constructor Summary

AccessConstructor and Description
pack-priv
ElementAtSubscriber(MaybeObserver<? super T> actual, long index)

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements io.reactivex.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.
public boolean
isDisposed()

Implements io.reactivex.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.
public void
onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(T
the element signaled
t
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
onSubscribe(Subscription
the Subscription that allows requesting data via Subscription#request(long)
s
)

Implements io.reactivex.FlowableSubscriber.onSubscribe.

Implementors of this method should make sure everything that needs to be visible in onNext(Object) is established before calling Subscription#request(long).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
pack-priv long count
doneback to summary
pack-priv boolean done
downstreamback to summary
pack-priv final MaybeObserver<? super T> downstream
indexback to summary
pack-priv final long index
upstreamback to summary
pack-priv Subscription upstream

Constructor Detail

ElementAtSubscriberback to summary
pack-priv ElementAtSubscriber(MaybeObserver<? super T> actual, long index)

Method Detail

disposeback to summary
public void dispose()

Implements io.reactivex.disposables.Disposable.dispose.

Doc from io.reactivex.disposables.Disposable.dispose.

Dispose the resource, the operation should be idempotent.

Annotations
@Override
isDisposedback to summary
public boolean isDisposed()

Implements io.reactivex.disposables.Disposable.isDisposed.

Doc from io.reactivex.disposables.Disposable.isDisposed.

Returns true if this resource has been disposed.

Returns:boolean

true if this resource has been disposed

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(T t)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
t:T

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription s)

Implements io.reactivex.FlowableSubscriber.onSubscribe.

Doc from io.reactivex.FlowableSubscriber.onSubscribe.

Implementors of this method should make sure everything that needs to be visible in onNext(Object) is established before calling Subscription#request(long). In practice this means no initialization should happen after the request() call and additional behavior is thread safe in respect to onNext. Invoked after calling Publisher#subscribe(Subscriber).

No data will start flowing until Subscription#request(long) is invoked.

It is the responsibility of this Subscriber instance to call Subscription#request(long) whenever more data is wanted.

The Publisher will send notifications only in response to Subscription#request(long).

Parameters
s:Subscription

Doc from org.reactivestreams.Subscriber.onSubscribe.

the Subscription that allows requesting data via Subscription#request(long)

Annotations
@Override