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.
@FunctionalInterface public interface MaybeOperator<@NonNull Downstream,@NonNull Upstream>Interface to map/wrap a downstreamMaybeObserverto an upstreamMaybeObserver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull MaybeObserver<? super Upstream>apply(@NonNull MaybeObserver<? super @NonNull Downstream> observer)Applies a function to the childMaybeObserverand returns a new parentMaybeObserver.
-
-
-
Method Detail
-
apply
@NonNull @NonNull MaybeObserver<? super Upstream> apply(@NonNull @NonNull MaybeObserver<? super @NonNull Downstream> observer) throws java.lang.Throwable
Applies a function to the childMaybeObserverand returns a new parentMaybeObserver.- Parameters:
observer- the childMaybeObserverinstance- Returns:
- the parent
MaybeObserverinstance - Throws:
java.lang.Throwable- on failure
-
-