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

public final Class FlowableFromIterable<T>

extends Flowable<T>
Class Inheritance
Imports
java.util.Iterator, org.reactivestreams.Subscriber, io.reactivex.Flowable, io.reactivex.annotations.Nullable, io.reactivex.exceptions.Exceptions, io.reactivex.internal.functions.ObjectHelper, io.reactivex.internal.fuseable.ConditionalSubscriber, io.reactivex.internal.subscriptions.*, io.reactivex.internal.util.BackpressureHelper

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Iterable<? extends T>

Constructor Summary

AccessConstructor and Description
public
FlowableFromIterable(Iterable<? extends T> source)

Method Summary

Modifier and TypeMethod and Description
public static <T> void
subscribe(Subscriber<? super T> s, Iterator<? extends T> it)

public void
subscribeActual(Subscriber<? super T>
the incoming Subscriber, never null
s
)

Implements abstract io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.
Inherited from io.reactivex.Flowable:
allambambArrayambWithanyasblockingFirstblockingFirstblockingForEachblockingIterableblockingIterableblockingLastblockingLastblockingLatestblockingMostRecentblockingNextblockingSingleblockingSingleblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribebufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferSizecachecacheWithInitialCapacitycastcollectcollectIntocombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcomposeconcatconcatconcatconcatconcatconcatconcatArrayconcatArrayDelayErrorconcatArrayEagerconcatArrayEagerconcatArrayEagerDelayErrorconcatArrayEagerDelayErrorconcatDelayErrorconcatDelayErrorconcatDelayErrorconcatEagerconcatEagerconcatEagerconcatEagerconcatMapconcatMapconcatMapCompletableconcatMapCompletableconcatMapCompletableDelayErrorconcatMapCompletableDelayErrorconcatMapCompletableDelayErrorconcatMapDelayErrorconcatMapDelayErrorconcatMapEagerconcatMapEagerconcatMapEagerDelayErrorconcatMapEagerDelayErrorconcatMapIterableconcatMapIterableconcatMapMaybeconcatMapMaybeconcatMapMaybeDelayErrorconcatMapMaybeDelayErrorconcatMapMaybeDelayErrorconcatMapSingleconcatMapSingleconcatMapSingleDelayErrorconcatMapSingleDelayErrorconcatMapSingleDelayErrorconcatWithconcatWithconcatWithconcatWithcontainscountcreatedebouncedebouncedebouncedefaultIfEmptydeferdelaydelaydelaydelaydelaydelaydelaySubscriptiondelaySubscriptiondelaySubscriptiondematerializedematerializedistinctdistinctdistinctdistinctUntilChangeddistinctUntilChangeddistinctUntilChangeddoAfterNextdoAfterTerminatedoFinallydoOnCanceldoOnCompletedoOnEachdoOnEachdoOnErrordoOnLifecycledoOnNextdoOnRequestdoOnSubscribedoOnTerminateelementAtelementAtelementAtOrErroremptyerrorerrorfilterfirstfirstElementfirstOrErrorflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapCompletableflatMapCompletableflatMapIterableflatMapIterableflatMapIterableflatMapIterableflatMapMaybeflatMapMaybeflatMapSingleflatMapSingleforEachforEachWhileforEachWhileforEachWhilefromArrayfromCallablefromFuturefromFuturefromFuturefromFuturefromIterablefromPublishergenerategenerategenerategenerategenerategroupBygroupBygroupBygroupBygroupBygroupBygroupJoinhideignoreElementsintervalintervalintervalintervalintervalRangeintervalRangeisEmptyjoinjustjustjustjustjustjustjustjustjustjustlastlastElementlastOrErrorliftlimitmapmaterializemergemergemergemergemergemergemergemergemergeArraymergeArraymergeArrayDelayErrormergeArrayDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeWithmergeWithmergeWithmergeWithneverobserveOnobserveOnobserveOnofTypeonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureDroponBackpressureDroponBackpressureLatestonErrorResumeNextonErrorResumeNextonErrorReturnonErrorReturnItemonExceptionResumeNextonTerminateDetachparallelparallelparallelpublishpublishpublishpublishrangerangeLongrebatchRequestsreducereducereduceWithrepeatrepeatrepeatUntilrepeatWhenreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayretryretryretryretryretryretryUntilretryWhensafeSubscribesamplesamplesamplesamplesamplesamplescanscanscanWithsequenceEqualsequenceEqualsequenceEqualsequenceEqualserializesharesinglesingleElementsingleOrErrorskipskipskipskipLastskipLastskipLastskipLastskipLastskipLastskipUntilskipWhilesortedsortedstartWithstartWithstartWithstartWithArraysubscribesubscribesubscribesubscribesubscribesubscribesubscribesubscribeOnsubscribeOnsubscribeWithswitchIfEmptyswitchMapswitchMapswitchMapCompletableswitchMapCompletableDelayErrorswitchMapDelayErrorswitchMapDelayErrorswitchMapMaybeswitchMapMaybeDelayErrorswitchMapSingleswitchMapSingleDelayErrorswitchOnNextswitchOnNextswitchOnNextDelayErrorswitchOnNextDelayErrortaketaketaketakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeUntiltakeUntiltakeWhiletesttesttestthrottleFirstthrottleFirstthrottleLastthrottleLastthrottleLatestthrottleLatestthrottleLatestthrottleLatestthrottleWithTimeoutthrottleWithTimeouttimeIntervaltimeIntervaltimeIntervaltimeIntervaltimeouttimeouttimeouttimeouttimeouttimeouttimeouttimeouttimertimertimestamptimestamptimestamptimestamptotoFuturetoListtoListtoListtoMaptoMaptoMaptoMultimaptoMultimaptoMultimaptoMultimaptoObservabletoSortedListtoSortedListtoSortedListtoSortedListunsafeCreateunsubscribeOnusingusingwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwithLatestFromwithLatestFromwithLatestFromwithLatestFromwithLatestFromwithLatestFromzipzipzipzipzipzipzipzipzipzipzipzipzipArrayzipIterablezipWithzipWithzipWithzipWith

Field Detail

sourceback to summary
pack-priv final Iterable<? extends T> source

Constructor Detail

FlowableFromIterableback to summary
public FlowableFromIterable(Iterable<? extends T> source)

Method Detail

subscribeback to summary
public static <T> void subscribe(Subscriber<? super T> s, Iterator<? extends T> it)
subscribeActualback to summary
public void subscribeActual(Subscriber<? super T> s)

Implements abstract io.reactivex.Flowable.subscribeActual.

Doc from io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.

There is no need to call any of the plugin hooks on the current Flowable instance or the Subscriber; all hooks and basic safeguards have been applied by subscribe(Subscriber) before this method gets called.

Parameters
s:Subscriber<? super T>

the incoming Subscriber, never null

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

pack-priv abstract Class FlowableFromIterable.BaseRangeSubscription<T>

extends BasicQueueSubscription<T>
Class Inheritance
Known Direct Subclasses
io.reactivex.internal.operators.flowable.FlowableFromIterable.IteratorSubscription, io.reactivex.internal.operators.flowable.FlowableFromIterable.IteratorConditionalSubscription

Field Summary

Modifier and TypeField and Description
pack-priv volatile boolean
pack-priv Iterator<? extends T>
pack-priv boolean
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final void
cancel()

Implements org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.
public final void
clear()

Implements io.reactivex.internal.fuseable.SimpleQueue.clear.

Removes all enqueued items from this queue.
pack-priv abstract void
public final boolean
isEmpty()

Implements io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Returns true if the queue is empty.
public final T
poll()

Implements io.reactivex.internal.fuseable.SimpleQueue.poll.

Tries to dequeue a value (non-null) or returns null if the queue is empty.
public final void
request(long
the strictly positive number of elements to requests to the upstream Publisher
n
)

Implements org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.
public final int
requestFusion(int
the requested fusion mode, allowed values are SYNC, ASYNC, ANY combined with BOUNDARY (e.g., requestFusion(SYNC | BOUNDARY)).
mode
)

Implements io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Request a fusion mode from the upstream.
pack-priv abstract void
slowPath(long r)

Inherited from io.reactivex.internal.subscriptions.BasicQueueSubscription:
offeroffer

Field Detail

cancelledback to summary
pack-priv volatile boolean cancelled
itback to summary
pack-priv Iterator<? extends T> it
onceback to summary
pack-priv boolean once
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.subscriptions.BasicQueueSubscription.serialVersionUID.

Constructor Detail

BaseRangeSubscriptionback to summary
pack-priv BaseRangeSubscription(Iterator<? extends T> it)

Method Detail

cancelback to summary
public final void cancel()

Implements org.reactivestreams.Subscription.cancel.

Doc from org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.

Data may still be sent to meet previously signalled demand after calling cancel.

Annotations
@Override
clearback to summary
public final void clear()

Implements io.reactivex.internal.fuseable.SimpleQueue.clear.

Doc from io.reactivex.internal.fuseable.SimpleQueue.clear.

Removes all enqueued items from this queue.

Annotations
@Override
fastPathback to summary
pack-priv abstract void fastPath()
isEmptyback to summary
public final boolean isEmpty()

Implements io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Doc from io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Returns true if the queue is empty.

Note however that due to potential fused functions in poll() it is possible this method returns false but then poll() returns null because the fused function swallowed the available item(s).

Returns:boolean

true if the queue is empty

Annotations
@Override
pollback to summary
public final T poll()

Implements io.reactivex.internal.fuseable.SimpleQueue.poll.

Doc from io.reactivex.internal.fuseable.SimpleQueue.poll.

Tries to dequeue a value (non-null) or returns null if the queue is empty.

If the producer uses offer(Object, Object) and when polling in pairs, if the first poll() returns a non-null item, the second poll() is guaranteed to return a non-null item as well.

Returns:T

the item or null to indicate an empty queue

Annotations
@Nullable
@Override
requestback to summary
public final void request(long n)

Implements org.reactivestreams.Subscription.request.

Doc from org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.

It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more, it may be treated by the Publisher as "effectively unbounded".

Whatever has been requested can be sent by the Publisher so only signal demand for what can be safely handled.

A Publisher can send less than is requested if the stream ends but then must emit either Subscriber#onError(Throwable) or Subscriber#onComplete().

Parameters
n:long

the strictly positive number of elements to requests to the upstream Publisher

Annotations
@Override
requestFusionback to summary
public final int requestFusion(int mode)

Implements io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Doc from io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Request a fusion mode from the upstream.

This should be called before onSubscribe returns.

Calling this method multiple times or after onSubscribe finished is not allowed and may result in undefined behavior.

Parameters
mode:int

the requested fusion mode, allowed values are SYNC, ASYNC, ANY combined with BOUNDARY (e.g., requestFusion(SYNC | BOUNDARY)).

Returns:int

the established fusion mode: NONE, SYNC, ASYNC.

Annotations
@Override
slowPathback to summary
pack-priv abstract void slowPath(long r)
io.reactivex.internal.operators.flowable back to summary

pack-priv final Class FlowableFromIterable.IteratorConditionalSubscription<T>

extends FlowableFromIterable.BaseRangeSubscription<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ConditionalSubscriber<? super T>
private static final long
Inherited from io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription:
cancelleditonce

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription:
cancelclearisEmptypollrequestrequestFusion

Field Detail

downstreamback to summary
pack-priv final ConditionalSubscriber<? super T> downstream
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.serialVersionUID.

Constructor Detail

IteratorConditionalSubscriptionback to summary
pack-priv IteratorConditionalSubscription(ConditionalSubscriber<? super T> actual, Iterator<? extends T> it)

Method Detail

fastPathback to summary
pack-priv void fastPath()

Implements abstract io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.fastPath.

Annotations
@Override
slowPathback to summary
pack-priv void slowPath(long r)

Implements abstract io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.slowPath.

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

pack-priv final Class FlowableFromIterable.IteratorSubscription<T>

extends FlowableFromIterable.BaseRangeSubscription<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super T>
private static final long
Inherited from io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription:
cancelleditonce

Constructor Summary

AccessConstructor and Description
pack-priv
IteratorSubscription(Subscriber<? super T> actual, Iterator<? extends T> it)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription:
cancelclearisEmptypollrequestrequestFusion

Field Detail

downstreamback to summary
pack-priv final Subscriber<? super T> downstream
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.serialVersionUID.

Constructor Detail

IteratorSubscriptionback to summary
pack-priv IteratorSubscription(Subscriber<? super T> actual, Iterator<? extends T> it)

Method Detail

fastPathback to summary
pack-priv void fastPath()

Implements abstract io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.fastPath.

Annotations
@Override
slowPathback to summary
pack-priv void slowPath(long r)

Implements abstract io.reactivex.internal.operators.flowable.FlowableFromIterable.BaseRangeSubscription.slowPath.

Annotations
@Override