Package io.reactivex.rxjava3.core
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 childObserver
and returns a new parentObserver
.- Parameters:
observer
- the childObserver
instance- Returns:
- the parent
Observer
instance - Throws:
Throwable
- on failure
-