Packages

implicit final class RichOptional[A] extends AnyVal

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

Source
OptionConverters.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichOptional
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RichOptional(o: Optional[A])

Value Members

  1. def getClass(): Class[_ <: AnyVal]

    Returns the runtime class representation of the object.

    Returns the runtime class representation of the object.

    returns

    a class object corresponding to the runtime type of the receiver.

    Definition Classes
    AnyValAny
  2. def toJavaPrimitive[O](implicit shape: OptionShape[A, O]): O

    Convert a generic Java Optional to a specialized variant

  3. def toScala: Option[A]

    Convert a Java Optional to a Scala Option

Deprecated Value Members

  1. def asScala: Option[A]

    Convert a Java Optional to a Scala Option

    Convert a Java Optional to a Scala Option

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toScala instead