RichOptional

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

Provides conversions from Java Optional to Scala Option and specialized Optional types

Attributes

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

Members list

Concise view

Value members

Concrete methods

def toJavaPrimitive[O](implicit shape: OptionShape[A, O]): O

Convert a generic Java Optional to a specialized variant

Convert a generic Java Optional to a specialized variant

Attributes

Source:
OptionConverters.scala
def toScala: Option[A]

Convert a Java Optional to a Scala Option

Convert a Java Optional to a Scala Option

Attributes

Source:
OptionConverters.scala

Deprecated methods

def asScala: Option[A]

Convert a Java Optional to a Scala Option

Convert a Java Optional to a Scala Option

Attributes

Deprecated
true
Source:
OptionConverters.scala