Interface ObservableTransformer<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.
Interface to compose
Observables.-
Method Summary
Modifier and TypeMethodDescriptionapply(@NonNull Observable<@NonNull Upstream> upstream) Applies a function to the upstreamObservableand returns anObservableSourcewith optionally different element type.
-
Method Details
-
apply
@NonNull @NonNull ObservableSource<Downstream> apply(@NonNull @NonNull Observable<@NonNull Upstream> upstream) Applies a function to the upstreamObservableand returns anObservableSourcewith optionally different element type.- Parameters:
upstream- the upstreamObservableinstance- Returns:
- the transformed
ObservableSourceinstance
-