Package rx.internal.operators
Class OnSubscribeMap<T,R>
- java.lang.Object
-
- rx.internal.operators.OnSubscribeMap<T,R>
-
- Type Parameters:
T
- the input value typeR
- the return value type
- All Implemented Interfaces:
Action
,Action1<Subscriber<? super R>>
,Function
,Observable.OnSubscribe<R>
public final class OnSubscribeMap<T,R> extends java.lang.Object implements Observable.OnSubscribe<R>
Applies a function of your choosing to every item emitted by anObservable
, and emits the results of this transformation as a newObservable
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
OnSubscribeMap.MapSubscriber<T,R>
-
Field Summary
Fields Modifier and Type Field Description (package private) Observable<T>
source
(package private) Func1<? super T,? extends R>
transformer
-
Constructor Summary
Constructors Constructor Description OnSubscribeMap(Observable<T> source, Func1<? super T,? extends R> transformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(Subscriber<? super R> o)
-
-
-
Field Detail
-
source
final Observable<T> source
-
-
Constructor Detail
-
OnSubscribeMap
public OnSubscribeMap(Observable<T> source, Func1<? super T,? extends R> transformer)
-
-
Method Detail
-
call
public void call(Subscriber<? super R> o)
-
-