Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorMapPair<T, U, R>

extends Object
implements Observable.Operator<Observable<? extends R>, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Type Parameters
<T>
the type of items emitted by the source Observable
<U>
the type of items emitted by the derived Observables
<R>
the type of items to be emitted by this Operator
Imports
rx.*, .Observable.Operator, rx.exceptions.*, rx.functions.*, rx.plugins.RxJavaHooks

An Operator that pairs up items emitted by a source Observable with the sequence of items emitted by the Observable that is derived from each item by means of a selector, and emits the results of this pairing.

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 Func1<? super T, ? extends Observable<? extends U>>
pack-priv final Func2<? super T, ? super U, ? extends R>

Constructor Summary

AccessConstructor and Description
public
OperatorMapPair(final Func1<? super T, ? extends Observable<? extends U>> collectionSelector, final Func2<? super T, ? super U, ? extends R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
public Subscriber<? super T>
call(final Subscriber<? super Observable<? extends R>> o)

Implements rx.functions.Func1.call.

public static <
the input value type
T
,
the value type of the generated Observable
U
>
Func1<T, Observable<U>>

Returns:

a function that converts an item emitted by the source Observable into an Observable that emits the items generated by selector operating on that item
convertSelector
(final Func1<? super T, ? extends Iterable<? extends U>>
a function that accepts an item and returns an Iterable of corresponding items
selector
)

Creates the function that generates a Observable based on an item emitted by another Observable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

collectionSelectorback to summary
pack-priv final Func1<? super T, ? extends Observable<? extends U>> collectionSelector
resultSelectorback to summary
pack-priv final Func2<? super T, ? super U, ? extends R> resultSelector

Constructor Detail

OperatorMapPairback to summary
public OperatorMapPair(final Func1<? super T, ? extends Observable<? extends U>> collectionSelector, final Func2<? super T, ? super U, ? extends R> resultSelector)

Method Detail

callback to summary
public Subscriber<? super T> call(final Subscriber<? super Observable<? extends R>> o)

Implements rx.functions.Func1.call.

Annotations
@Override
convertSelectorback to summary
public static <T, U> Func1<T, Observable<U>> convertSelector(final Func1<? super T, ? extends Iterable<? extends U>> selector)

Creates the function that generates a Observable based on an item emitted by another Observable.

Parameters
<T>
the input value type
<U>
the value type of the generated Observable
selector:Func1<? super T, ? extends Iterable<? extends U>>

a function that accepts an item and returns an Iterable of corresponding items

Returns:Func1<T, Observable<U>>

a function that converts an item emitted by the source Observable into an Observable that emits the items generated by selector operating on that item

rx.internal.operators back to summary

pack-priv final Class OperatorMapPair.MapPairSubscriber<T, U, R>

extends Subscriber<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super Observable<? extends R>>
pack-priv final Func1<? super T, ? extends Observable<? extends U>>
pack-priv boolean
pack-priv final Func2<? super T, ? super U, ? extends R>

Constructor Summary

AccessConstructor and Description
public
MapPairSubscriber(Subscriber<? super Observable<? extends R>> actual, Func1<? super T, ? extends Observable<? extends U>> collectionSelector, Func2<? super T, ? super U, ? extends R> resultSelector)

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(T
the item emitted by the Observable
outer
)

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 Observable<? extends R>> actual
collectionSelectorback to summary
pack-priv final Func1<? super T, ? extends Observable<? extends U>> collectionSelector
doneback to summary
pack-priv boolean done
resultSelectorback to summary
pack-priv final Func2<? super T, ? super U, ? extends R> resultSelector

Constructor Detail

MapPairSubscriberback to summary
public MapPairSubscriber(Subscriber<? super Observable<? extends R>> actual, Func1<? super T, ? extends Observable<? extends U>> collectionSelector, Func2<? super T, ? super U, ? extends R> resultSelector)

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(T outer)

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
outer: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 OperatorMapPair.OuterInnerMapper<T, U, R>

extends Object
implements Func1<U, R>
Class Inheritance
All Implemented Interfaces
rx.functions.Func1, rx.functions.Function

Field Summary

Modifier and TypeField and Description
pack-priv final T
pack-priv final Func2<? super T, ? super U, ? extends R>

Constructor Summary

AccessConstructor and Description
public
OuterInnerMapper(T outer, Func2<? super T, ? super U, ? extends R> resultSelector)

Method Summary

Modifier and TypeMethod and Description
public R
call(U inner)

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outerback to summary
pack-priv final T outer
resultSelectorback to summary
pack-priv final Func2<? super T, ? super U, ? extends R> resultSelector

Constructor Detail

OuterInnerMapperback to summary
public OuterInnerMapper(T outer, Func2<? super T, ? super U, ? extends R> resultSelector)

Method Detail

callback to summary
public R call(U inner)

Implements rx.functions.Func1.call.

Annotations
@Override