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.
@FunctionalInterface public interface ObservableOperator<@NonNull Downstream,@NonNull Upstream>Interface to map/wrap a downstreamObserverto an upstreamObserver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull Observer<? super Upstream>apply(@NonNull Observer<? super @NonNull Downstream> observer)Applies a function to the childObserverand returns a new parentObserver.
-
-
-
Method Detail
-
apply
@NonNull @NonNull Observer<? super Upstream> apply(@NonNull @NonNull Observer<? super @NonNull Downstream> observer) throws java.lang.Throwable
Applies a function to the childObserverand returns a new parentObserver.- Parameters:
observer- the childObserverinstance- Returns:
- the parent
Observerinstance - Throws:
java.lang.Throwable- on failure
-
-