RichOption

scala.jdk.OptionConverters$.RichOption
final implicit class RichOption[A](o: Option[A]) extends AnyVal

Provides conversions from Scala Option to Java Optional types

Attributes

Source:
OptionConverters.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Convert a Scala Option to a generic Java Optional

Convert a Scala Option to a generic Java Optional

Attributes

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

Attributes

Source:
OptionConverters.scala

Deprecated methods

Convert a Scala Option to a generic Java Optional

Convert a Scala Option to a generic Java Optional

Attributes

Deprecated
true
Source:
OptionConverters.scala