Provides conversions from Scala Option to Java Optional types
Provides conversions from Java Optional to Scala Option and specialized Optional types
Provides conversions from OptionalDouble to Scala Option and the generic Optional
Provides conversions from OptionalInt to Scala Option and the generic Optional
Provides conversions from OptionalLong to Scala Option and the generic Optional
This object provides extension methods that convert between Scala
Optionand JavaOptionaltypes.Scala
Optionis extended with atoJavamethod that creates a correspondingOptional, and atoJavaPrimitivemethod that creates a specialized variant (e.g.,OptionalInt) if applicable.Java
Optionalis extended with atoScalamethod and atoJavaPrimitivemethod.Finally, specialized
Optionaltypes are extended withtoScalaandtoJavaGenericmethods.Example usage: