RxJava



rx.operators
Class OperatorMap<T,R>

java.lang.Object
  extended by rx.operators.OperatorMap<T,R>
All Implemented Interfaces:
Func1<Subscriber<? super R>,Subscriber<? super T>>, Function, Observable.Operator<R,T>

public final class OperatorMap<T,R>
extends java.lang.Object
implements Observable.Operator<R,T>

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


Constructor Summary
OperatorMap(Func1<? super T,? extends R> transformer)
           
 
Method Summary
 Subscriber<? super T> call(Subscriber<? super R> o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperatorMap

public OperatorMap(Func1<? super T,? extends R> transformer)
Method Detail

call

public Subscriber<? super T> call(Subscriber<? super R> o)
Specified by:
call in interface Func1<Subscriber<? super R>,Subscriber<? super T>>