opt method

Opt<T> opt()

Wraps this value in an Opt.

Implementation

Opt<T> opt() => Opt.ofNullable(this);