Package io.reactivex.rxjava3.core
Interface MaybeConverter<T,R>
-
- Type Parameters:
T
- the upstream typeR
- the output type
- 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 MaybeConverter<@NonNull T,@NonNull R>
Convenience interface and callback used by theMaybe.to(io.reactivex.rxjava3.core.MaybeConverter<T, ? extends R>)
operator to turn aMaybe
into another value fluently.History: 2.1.7 - experimental
- Since:
- 2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(@NonNull Maybe<@NonNull T> upstream)
Applies a function to the upstreamMaybe
and returns a converted value of typeR
.
-