Upstream - the upstream value typeDownstream - the downstream value typepublic interface MaybeTransformer<Upstream,Downstream>
| Modifier and Type | Method and Description |
|---|---|
MaybeSource<Downstream> |
apply(Maybe<Upstream> upstream)
Applies a function to the upstream Maybe and returns a MaybeSource with
optionally different element type.
|
@NonNull MaybeSource<Downstream> apply(@NonNull Maybe<Upstream> upstream)
upstream - the upstream Maybe instance