Package io.reactivex.rxjava3.core
Interface MaybeOperator<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
MaybeObserver
to an upstream MaybeObserver
.-
Method Summary
Modifier and TypeMethodDescription@NonNull MaybeObserver
<? super Upstream> apply
(@NonNull MaybeObserver<? super @NonNull Downstream> observer) Applies a function to the childMaybeObserver
and returns a new parentMaybeObserver
.
-
Method Details
-
apply
@NonNull @NonNull MaybeObserver<? super Upstream> apply(@NonNull @NonNull MaybeObserver<? super @NonNull Downstream> observer) throws Throwable Applies a function to the childMaybeObserver
and returns a new parentMaybeObserver
.- Parameters:
observer
- the childMaybeObserver
instance- Returns:
- the parent
MaybeObserver
instance - Throws:
Throwable
- on failure
-