scala.jdk.OptionConverters.RichOption
Provides conversions from Scala Option to Java Optional types.
Type parameters
- A
-
the type of the value contained in the Option
Value parameters
- o
-
the Scala Option to convert
Attributes
- Source
-
OptionConverters.scala
- Graph
-
- Supertypes
-
Members list
Converts a Scala Option to a generic Java Optional.
Converts a Scala Option to a specialized Java Optional.
Converts a Scala Option to a specialized Java Optional.
Type parameters
- O
-
the specialized Java Optional type (e.g., OptionalInt, OptionalDouble, OptionalLong)
Value parameters
- shape
-
implicit evidence that defines how to convert between Option[A] and the specialized type O
Attributes
- Source
-
OptionConverters.scala
Converts a Scala Option to a generic Java Optional.
Converts a Scala Option to a generic Java Optional.
Attributes
- Deprecated
-
[Since version 2.13.0] Use `toJava` instead
- Source
-
OptionConverters.scala