- All Implemented Interfaces:
- Delegate<Maybe<T>,T>
public class LiftMaybe<T>
extends Object
implements Delegate<Maybe<T>,T>
Transforms a T to a Maybe monadic value yielding nothing(T) for nulls and
just(T) otherwise.
Note this is not the wrapping delegate you usually want, look @ PureMaybe.
Adjoint functor of DropMaybe.
- Author:
- rferranti