Package io.reactivex.rxjava3.core
Interface MaybeTransformer<Upstream,Downstream>
- Type Parameters:
Upstream
- the upstream value typeDownstream
- the downstream value type
- 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 compose
Maybe
s.-
Method Summary
Modifier and TypeMethodDescriptionApplies a function to the upstreamMaybe
and returns aMaybeSource
with optionally different element type.
-
Method Details
-
apply
@NonNull @NonNull MaybeSource<Downstream> apply(@NonNull @NonNull Maybe<@NonNull Upstream> upstream) Applies a function to the upstreamMaybe
and returns aMaybeSource
with optionally different element type.- Parameters:
upstream
- the upstreamMaybe
instance- Returns:
- the transformed
MaybeSource
instance
-