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.
|
MaybeSource<Downstream> apply(Maybe<Upstream> upstream) throws java.lang.Exception
upstream - the upstream Maybe instancejava.lang.Exception - in case the transformation throws, checked exceptions will be wrapped
into a RuntimeException