Top Description Inners Fields Constructors Methods
rx.internal.operators

public final Class OperatorMapNotification<T, R>

extends Object
implements Observable.Operator<R, T>
Class Inheritance
All Implemented Interfaces
rx.Observable.Operator, rx.functions.Func1, rx.functions.Function
Type Parameters
<T>
the input value type
<R>
the output value type
Imports
java.util.concurrent.atomic.*, rx.*, .Observable.Operator, rx.exceptions.Exceptions, rx.functions.*

Applies a function of your choosing to every item emitted by an Observable, and emits the results of this transformation as a new Observable.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final Func0<? extends R>
pack-priv final Func1<? super Throwable, ? extends R>
pack-priv final Func1<? super T, ? extends R>

Constructor Summary

AccessConstructor and Description
public
OperatorMapNotification(Func1<? super T, ? extends R> onNext, Func1<? super Throwable, ? extends R> onError, Func0<? extends R> onCompleted)

Method Summary

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

Implements rx.functions.Func1.call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

onCompletedback to summary
pack-priv final Func0<? extends R> onCompleted
onErrorback to summary
pack-priv final Func1<? super Throwable, ? extends R> onError
onNextback to summary
pack-priv final Func1<? super T, ? extends R> onNext

Constructor Detail

OperatorMapNotificationback to summary
public OperatorMapNotification(Func1<? super T, ? extends R> onNext, Func1<? super Throwable, ? extends R> onError, Func0<? extends R> onCompleted)

Method Detail

callback to summary
public Subscriber<? super T> call(final Subscriber<? super R> child)

Implements rx.functions.Func1.call.

Annotations
@Override
rx.internal.operators back to summary

pack-priv final Class OperatorMapNotification.MapNotificationSubscriber<T, R>

extends Subscriber<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super R>
pack-priv static final long
pack-priv final AtomicLong
pack-priv final Func0<? extends R>
pack-priv final Func1<? super Throwable, ? extends R>
pack-priv final Func1<? super T, ? extends R>
pack-priv long
pack-priv final AtomicReference<Producer>
pack-priv final AtomicLong
pack-priv static final long
pack-priv R

Constructor Summary

AccessConstructor and Description
public
MapNotificationSubscriber(Subscriber<? super R> actual, Func1<? super T, ? extends R> onNext, Func1<? super Throwable, ? extends R> onError, Func0<? extends R> onCompleted)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
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.
pack-priv void
requestInner(long n)

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.
pack-priv void
Inherited from rx.Subscriber:
addisUnsubscribedonStartrequestunsubscribe

Field Detail

actualback to summary
pack-priv final Subscriber<? super R> actual
COMPLETED_FLAGback to summary
pack-priv static final long COMPLETED_FLAG
missedRequestedback to summary
pack-priv final AtomicLong missedRequested
onCompletedback to summary
pack-priv final Func0<? extends R> onCompleted
onErrorback to summary
pack-priv final Func1<? super Throwable, ? extends R> onError
onNextback to summary
pack-priv final Func1<? super T, ? extends R> onNext
producedback to summary
pack-priv long produced
producerback to summary
pack-priv final AtomicReference<Producer> producer

Hides rx.Subscriber.producer.

requestedback to summary
pack-priv final AtomicLong requested

Hides rx.Subscriber.requested.

REQUESTED_MASKback to summary
pack-priv static final long REQUESTED_MASK
valueback to summary
pack-priv R value

Constructor Detail

MapNotificationSubscriberback to summary
public MapNotificationSubscriber(Subscriber<? super R> actual, Func1<? super T, ? extends R> onNext, Func1<? super Throwable, ? extends R> onError, Func0<? extends R> onCompleted)

Method Detail

accountProducedback to summary
pack-priv void accountProduced()
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
requestInnerback to summary
pack-priv void requestInner(long n)
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
tryEmitback to summary
pack-priv void tryEmit()