Class OnSubscribeMap<T,​R>

  • Type Parameters:
    T - the input value type
    R - 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 an Observable, and emits the results of this transformation as a new Observable.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void call​(Subscriber<? super R> o)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • transformer

        final Func1<? super T,​? extends R> transformer
    • Constructor Detail

      • OnSubscribeMap

        public OnSubscribeMap​(Observable<T> source,
                              Func1<? super T,​? extends R> transformer)