Converts this Try
into Opt
.
Converts this Try
into Opt
. Because Opt
cannot hold null
, Success(null)
is translated to Opt.Empty
.
Converts this Try
into OptArg
.
Converts this Try
into OptArg
. Because OptArg
cannot hold null
, Success(null)
is translated to OptArg.Empty
.
Converts this Try
into OptRef
, changing the element type into boxed representation if
necessary (e.g.
Converts this Try
into OptRef
, changing the element type into boxed representation if
necessary (e.g. Boolean
into java.lang.Boolean
). Because OptRef
cannot hold null
,
Success(null)
is translated to OptRef.Empty
.