The zip operation applies this function in strict sequence, so the first item emitted by the new Observable will be the result of the function applied to the first item emitted by each zipped Observable; the second item emitted by the new Observable will be the result of the function applied to the second item emitted by each zipped Observable; and so forth.
The resulting Observable returned from zip will invoke onNext as many times as the
number of onNext invocations of the source Observable that emits the fewest items.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FuncN |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber |
| zipFunction | back to summary |
|---|---|
| pack-priv final FuncN<? extends R> zipFunction | |
| OperatorZip | back to summary |
|---|---|
| public OperatorZip(FuncN<? extends R> f) | |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func2<T1, T2, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func3<T1, T2, T3, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func4<T1, T2, T3, T4, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func5<T1, T2, T3, T4, T5, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func6<T1, T2, T3, T4, T5, T6, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func7<T1, T2, T3, T4, T5, T6, T7, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func8<T1, T2, T3, T4, T5, T6, T7, T8, R> f)
| |
| OperatorZip | back to summary |
|---|---|
public OperatorZip(Func9<T1, T2, T3, T4, T5, T6, T7, T8, T9, R> f)
| |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Observer | |
| private final CompositeSubscription | |
| pack-priv int | |
| private AtomicLong | |
| private static final long | |
| private volatile Object[] | |
| pack-priv static final int | |
| private final FuncN |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv void | tick()
check if we have values for each and emit if we do This will only allow one thread at a time to do the work, but ensures via `counter` increment/decrement that there is always once who acts on each `tick`. |
| child | back to summary |
|---|---|
| pack-priv final Observer<? super R> child | |
| childSubscription | back to summary |
|---|---|
| private final CompositeSubscription childSubscription | |
| emitted | back to summary |
|---|---|
| pack-priv int emitted | |
| requested | back to summary |
|---|---|
| private AtomicLong requested | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| subscribers | back to summary |
|---|---|
| private volatile Object[] subscribers | |
| THRESHOLD | back to summary |
|---|---|
| pack-priv static final int THRESHOLD | |
| zipFunction | back to summary |
|---|---|
| private final FuncN<? extends R> zipFunction | |
| Zip | back to summary |
|---|---|
| public Zip(final Subscriber<? super R> child, FuncN<? extends R> zipFunction) | |
| start | back to summary |
|---|---|
public void start(Observable<T>[] os, AtomicLong requested)
| |
| tick | back to summary |
|---|---|
| pack-priv void tick() check if we have values for each and emit if we do This will only allow one thread at a time to do the work, but ensures via `counter` increment/decrement that there is always once who acts on each `tick`. Same concept as used in OperationObserveOn.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final RxRingBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(Object
the item emitted by the Observable t)Implements rx. |
| public void | onStart()
Overrides rx. |
| public void |
| items | back to summary |
|---|---|
| pack-priv final RxRingBuffer items | |
| InnerSubscriber | back to summary |
|---|---|
| pack-priv InnerSubscriber() | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(Object t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The | |
| onStart | back to summary |
|---|---|
| public void onStart() Overrides rx. Doc from rx. This method is invoked when the Subscriber and Observable have been connected but the Observable has not yet begun to emit items or send notifications to the Subscriber. Override this method to add any useful initialization to your subscription, for instance to initiate backpressure.
| |
| requestMore | back to summary |
|---|---|
| public void requestMore(long n) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| pack-priv final OperatorZip. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | request(long
the maximum number of items you want this Producer to produce, or n)Long.MAX_VALUE if you
want the Producer to produce items at its own paceImplements rx. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| zipper | back to summary |
|---|---|
| pack-priv final OperatorZip. | |
| ZipProducer | back to summary |
|---|---|
| public ZipProducer(OperatorZip. | |
| request | back to summary |
|---|---|
| public void request(long n) Implements rx. Doc from rx. Request a certain maximum number of items from this Producer. This is a way of requesting backpressure.
To disable backpressure, pass
Requests are additive but if a sequence of requests totals more than request(100); request(Long.MAX_VALUE-1);
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Subscriber | |
| pack-priv final OperatorZip. | |
| pack-priv boolean | |
| pack-priv final OperatorZip. |
| Access | Constructor and Description |
|---|---|
| public | ZipSubscriber(Subscriber<? super R> child, OperatorZip.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(Observable<T>[]
the item emitted by the Observable observables)Implements rx. |
| child | back to summary |
|---|---|
| pack-priv final Subscriber<? super R> child | |
| producer | back to summary |
|---|---|
| pack-priv final OperatorZip. Hides rx. | |
| started | back to summary |
|---|---|
| pack-priv boolean started | |
| zipper | back to summary |
|---|---|
| pack-priv final OperatorZip. | |
| ZipSubscriber | back to summary |
|---|---|
| public ZipSubscriber(Subscriber<? super R> child, OperatorZip. | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(Observable<T>[] observables) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |