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