Interface ObservableOperator<Downstream, Upstream>
- Type Parameters:
Downstream- the value type of the downstreamUpstream- the value type of the upstream
- 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 map/wrap a downstream
Observer to an upstream Observer.-
Method Summary
-
Method Details
-
apply
@NonNull @NonNull Observer<? super Upstream> apply(@NonNull @NonNull Observer<? super @NonNull Downstream> observer) throws Throwable Applies a function to the childObserverand returns a new parentObserver.- Parameters:
observer- the childObserverinstance- Returns:
- the parent
Observerinstance - Throws:
Throwable- on failure
-