Adds an asJava
method that converts a Scala Option[T]
to
a Guava Optional[T]
.
Adds an asJava
method that converts a Scala Option[T]
to
a Guava Optional[T]
.
The returned Guava Optional[T]
contains the same reference as in the
Scala Option[T]
or GuavaOptional.absent()
if the Option[T]
is None.
the Scala Option[T]
to convert to a Guava Optional[T]
An object with an asJava
method that returns a Guava Optional[T]
view of the argument
Adds an asScala
method that converts a Guava Optional[T]
to
a Scala Option[T]
.
Adds an asScala
method that converts a Guava Optional[T]
to
a Scala Option[T]
.
The returned Scala Option[T]
contains the same reference as in the
Guava Optional[T]
or None
if the Optional[T]
is absent.
the Guava Optional[T]
to convert to a Scala Option[T]
An object with an asScala
method that returns a Scala Option[T]
view of the argument
Utility functions for the work with
Option[T]
andOptional[T]
Usage example for conversion between Guava and Mango:
0.7