Package rx.internal.operators
Class SingleOnSubscribeMap.MapSubscriber<T,R>
- java.lang.Object
-
- rx.SingleSubscriber<T>
-
- rx.internal.operators.SingleOnSubscribeMap.MapSubscriber<T,R>
-
- All Implemented Interfaces:
Subscription
- Enclosing class:
- SingleOnSubscribeMap<T,R>
static final class SingleOnSubscribeMap.MapSubscriber<T,R> extends SingleSubscriber<T>
-
-
Constructor Summary
Constructors Constructor Description MapSubscriber(SingleSubscriber<? super R> actual, Func1<? super T,? extends R> mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onError(java.lang.Throwable e)
Notifies the SingleSubscriber that theSingle
has experienced an error condition.void
onSuccess(T t)
Notifies the SingleSubscriber with a single item and that theSingle
has finished sending push-based notifications.-
Methods inherited from class rx.SingleSubscriber
add, isUnsubscribed, unsubscribe
-
-
-
-
Field Detail
-
actual
final SingleSubscriber<? super R> actual
-
done
boolean done
-
-
Constructor Detail
-
MapSubscriber
public MapSubscriber(SingleSubscriber<? super R> actual, Func1<? super T,? extends R> mapper)
-
-
Method Detail
-
onSuccess
public void onSuccess(T t)
Description copied from class:SingleSubscriber
Notifies the SingleSubscriber with a single item and that theSingle
has finished sending push-based notifications.The
Single
will not call this method if it callsSingleSubscriber.onError(java.lang.Throwable)
.- Specified by:
onSuccess
in classSingleSubscriber<T>
- Parameters:
t
- the item emitted by the Single
-
onError
public void onError(java.lang.Throwable e)
Description copied from class:SingleSubscriber
Notifies the SingleSubscriber that theSingle
has experienced an error condition.If the
Single
calls this method, it will not thereafter callSingleSubscriber.onSuccess(T)
.- Specified by:
onError
in classSingleSubscriber<T>
- Parameters:
e
- the exception encountered by the Single
-
-