Packages

implicit final class RichOption[A] extends AnyVal

Provides conversions from Scala Option to Java Optional types

Source
OptionConverters.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichOption
  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 RichOption(o: Option[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 toJava: Optional[A]

    Convert a Scala Option to a generic Java Optional

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

    Convert a Scala Option to a specialized Java Optional

Deprecated Value Members

  1. def asJava: Optional[A]

    Convert a Scala Option to a generic Java Optional

    Convert a Scala Option to a generic Java Optional

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toJava instead