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.
Interface to map/wrap a downstream
SingleObserver
to an upstream SingleObserver
.-
Method Summary
Modifier and TypeMethodDescription@NonNull SingleObserver
<? super Upstream> apply
(@NonNull SingleObserver<? super @NonNull Downstream> observer) Applies a function to the childSingleObserver
and returns a new parentSingleObserver
.
-
Method Details
-
apply
@NonNull @NonNull SingleObserver<? super Upstream> apply(@NonNull @NonNull SingleObserver<? super @NonNull Downstream> observer) throws Throwable Applies a function to the childSingleObserver
and returns a new parentSingleObserver
.- Parameters:
observer
- the childSingleObserver
instance- Returns:
- the parent
SingleObserver
instance - Throws:
Throwable
- on failure
-