Top Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorWithLatestFromMany<T, R>

extends Object
implements Observable.OnSubscribe<R>
Class Inheritance
All Implemented Interfaces
rx.Observable.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Imports
java.util.Arrays, java.util.concurrent.atomic.*, rx.*, .Observable.OnSubscribe, rx.exceptions.Exceptions, rx.functions.FuncN, rx.observers.SerializedSubscriber, rx.plugins.RxJavaHooks

Nested and Inner Type Summary

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

Field Summary

Modifier and TypeField and Description
pack-priv final FuncN<R>
pack-priv final Observable<T>
pack-priv final Observable<?>[]
pack-priv final Iterable<Observable<?>>

Constructor Summary

AccessConstructor and Description
public
OperatorWithLatestFromMany(Observable<T> main, Observable<?>[] others, Iterable<Observable<?>> othersIterable, FuncN<R> combiner)

Method Summary

Modifier and TypeMethod and Description
public void
call(Subscriber<? super R> t)

Implements rx.functions.Action1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

combinerback to summary
pack-priv final FuncN<R> combiner
mainback to summary
pack-priv final Observable<T> main
othersback to summary
pack-priv final Observable<?>[] others
othersIterableback to summary
pack-priv final Iterable<Observable<?>> othersIterable

Constructor Detail

OperatorWithLatestFromManyback to summary
public OperatorWithLatestFromMany(Observable<T> main, Observable<?>[] others, Iterable<Observable<?>> othersIterable, FuncN<R> combiner)

Method Detail

callback to summary
public void call(Subscriber<? super R> t)

Implements rx.functions.Action1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorWithLatestFromMany.WithLatestMainSubscriber<T, R>

extends Subscriber<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super R>
pack-priv final FuncN<R>
pack-priv final AtomicReferenceArray<Object>
pack-priv boolean
pack-priv static final Object
pack-priv final AtomicInteger

Constructor Summary

AccessConstructor and Description
public
WithLatestMainSubscriber(Subscriber<? super R> actual, FuncN<R> combiner, int n)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
innerComplete(int index)

pack-priv void
innerError(int index, Throwable e)

pack-priv void
innerNext(int index, Object o)

public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(T
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
public void
setProducer(Producer
producer to be used by this subscriber or the other subscriber (or recursively its other subscriber) to make requests from
p
)

Overrides rx.Subscriber.setProducer.

If other subscriber is set (by calling constructor Subscriber(Subscriber) or Subscriber(Subscriber, boolean)) then this method calls setProducer on the other subscriber.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestunsubscribe

Field Detail

actualback to summary
pack-priv final Subscriber<? super R> actual
combinerback to summary
pack-priv final FuncN<R> combiner
currentback to summary
pack-priv final AtomicReferenceArray<Object> current
doneback to summary
pack-priv boolean done
EMPTYback to summary
pack-priv static final Object EMPTY
readyback to summary
pack-priv final AtomicInteger ready

Constructor Detail

WithLatestMainSubscriberback to summary
public WithLatestMainSubscriber(Subscriber<? super R> actual, FuncN<R> combiner, int n)

Method Detail

innerCompleteback to summary
pack-priv void innerComplete(int index)
innerErrorback to summary
pack-priv void innerError(int index, Throwable e)
innerNextback to summary
pack-priv void innerNext(int index, Object o)
onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

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

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

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

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

Provides the Observer with a new item to observe.

The Observable may call this method 0 or more times.

The Observable will not call this method again after it calls either onCompleted or onError.

Parameters
t:T

the item emitted by the Observable

Annotations
@Override
setProducerback to summary
public void setProducer(Producer p)

Overrides rx.Subscriber.setProducer.

Doc from rx.Subscriber.setProducer.

If other subscriber is set (by calling constructor Subscriber(Subscriber) or Subscriber(Subscriber, boolean)) then this method calls setProducer on the other subscriber. If the other subscriber is not set and no requests have been made to this subscriber then p.request(Long.MAX_VALUE) is called. If the other subscriber is not set and some requests have been made to this subscriber then p.request(n) is called where n is the accumulated requests to this subscriber.

Parameters
p:Producer

producer to be used by this subscriber or the other subscriber (or recursively its other subscriber) to make requests from

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorWithLatestFromMany.WithLatestOtherSubscriber

extends Subscriber<Object>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final OperatorWithLatestFromMany.WithLatestMainSubscriber<?, ?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onCompleted()

Implements rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.
public void
onError(Throwable
the exception encountered by the Observable
e
)

Implements rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.
public void
onNext(Object
the item emitted by the Observable
t
)

Implements rx.Observer.onNext.

Provides the Observer with a new item to observe.
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestsetProducerunsubscribe

Field Detail

indexback to summary
pack-priv final int index
parentback to summary
pack-priv final OperatorWithLatestFromMany.WithLatestMainSubscriber<?, ?> parent

Constructor Detail

WithLatestOtherSubscriberback to summary
public WithLatestOtherSubscriber(OperatorWithLatestFromMany.WithLatestMainSubscriber<?, ?> parent, int index)

Method Detail

onCompletedback to summary
public void onCompleted()

Implements rx.Observer.onCompleted.

Doc from rx.Observer.onCompleted.

Notifies the Observer that the Observable has finished sending push-based notifications.

The Observable will not call this method if it calls onError.

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

Implements rx.Observer.onError.

Doc from rx.Observer.onError.

Notifies the Observer that the Observable has experienced an error condition.

If the Observable calls this method, it will not thereafter call onNext or onCompleted.

Parameters
e:Throwable

the exception encountered by the Observable

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

Implements rx.Observer.onNext.

Doc from rx.Observer.onNext.

Provides the Observer with a new item to observe.

The Observable may call this method 0 or more times.

The Observable will not call this method again after it calls either onCompleted or onError.

Parameters
t:Object

the item emitted by the Observable

Annotations
@Override