Package io.reactivex.rxjava3.core
Interface SingleOperator<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 SingleOperator<@NonNull Downstream,@NonNull Upstream>Interface to map/wrap a downstreamSingleObserverto an upstreamSingleObserver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull SingleObserver<? super Upstream>apply(@NonNull SingleObserver<? super @NonNull Downstream> observer)Applies a function to the childSingleObserverand returns a new parentSingleObserver.
-
-
-
Method Detail
-
apply
@NonNull @NonNull SingleObserver<? super Upstream> apply(@NonNull @NonNull SingleObserver<? super @NonNull Downstream> observer) throws java.lang.Throwable
Applies a function to the childSingleObserverand returns a new parentSingleObserver.- Parameters:
observer- the childSingleObserverinstance- Returns:
- the parent
SingleObserverinstance - Throws:
java.lang.Throwable- on failure
-
-