Package io.reactivex.rxjava3.core
Interface SingleTransformer<Upstream,Downstream>
-
- Type Parameters:
Upstream
- the upstream value typeDownstream
- the downstream value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SingleTransformer<@NonNull Upstream,@NonNull Downstream>
Interface to composeSingle
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull SingleSource<Downstream>
apply(@NonNull Single<@NonNull Upstream> upstream)
Applies a function to the upstreamSingle
and returns aSingleSource
with optionally different element type.
-
-
-
Method Detail
-
apply
@NonNull @NonNull SingleSource<Downstream> apply(@NonNull @NonNull Single<@NonNull Upstream> upstream)
Applies a function to the upstreamSingle
and returns aSingleSource
with optionally different element type.- Parameters:
upstream
- the upstreamSingle
instance- Returns:
- the transformed
SingleSource
instance
-
-