RichOption

final class RichOption[A](o: Option[A]) extends AnyVal

Provides conversions from Scala Option to Java Optional types

Source
OptionConverters.scala
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

Convert a Scala Option to a generic Java Optional

Convert a Scala Option to a generic Java Optional

Source
OptionConverters.scala
def toJavaPrimitive[O](implicit shape: OptionShape[A, O]): O

Convert a Scala Option to a specialized Java Optional

Convert a Scala Option to a specialized Java Optional

Source
OptionConverters.scala

Deprecated methods

@deprecated("Use `toJava` instead", "2.13.0")

Convert a Scala Option to a generic Java Optional

Convert a Scala Option to a generic Java Optional

Deprecated
Source
OptionConverters.scala