RichOptional

final class RichOptional[A](o: Optional[A]) extends AnyVal

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

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

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

Convert a generic Java Optional to a specialized variant

def toScala: Option[A]

Convert a Java Optional to a Scala Option

Deprecated methods

@deprecated("Use `toScala` instead", "2.13.0")
def asScala: Option[A]

Convert a Java Optional to a Scala Option

Deprecated
Source
OptionConverters.scala