Class SingleOnSubscribeMap<T,R>

java.lang.Object
rx.internal.operators.SingleOnSubscribeMap<T,R>
Type Parameters:
T - the input value type
R - the return value type
All Implemented Interfaces:
Action, Action1<SingleSubscriber<? super R>>, Function, Single.OnSubscribe<R>

public final class SingleOnSubscribeMap<T,R> extends Object implements Single.OnSubscribe<R>
Applies a function of your choosing to every item emitted by an Single, and emits the results of this transformation as a new Single.
  • Field Details

    • source

      final Single<T> source
    • transformer

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

    • SingleOnSubscribeMap

      public SingleOnSubscribeMap(Single<T> source, Func1<? super T,? extends R> transformer)
  • Method Details