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

Value members

Concrete methods

def toJava: Optional[A]

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

def asJava: Optional[A]

Convert a Scala Option to a generic Java Optional

Convert a Scala Option to a generic Java Optional

Attributes

Deprecated
true
Source
OptionConverters.scala