Class 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 java.lang.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 Detail

      • transformer

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

      • SingleOnSubscribeMap

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