Upstream
- the upstream value typeDownstream
- the downstream value typepublic interface ObservableTransformer<Upstream,Downstream>
Modifier and Type | Method and Description |
---|---|
ObservableSource<Downstream> |
apply(Observable<Upstream> upstream)
Applies a function to the upstream Observable and returns an ObservableSource with
optionally different element type.
|
ObservableSource<Downstream> apply(Observable<Upstream> upstream) throws java.lang.Exception
upstream
- the upstream Observable instancejava.lang.Exception
- in case the transformation throws, checked exceptions will be wrapped
into a RuntimeException