Packages

c

scala.jdk.OptionConverters

RichOptionalLong

implicit final class RichOptionalLong extends AnyVal

Provides conversions from OptionalLong to Scala Option and the generic Optional

Source
OptionConverters.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichOptionalLong
  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 RichOptionalLong(o: OptionalLong)

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 toJavaGeneric: Optional[Long]

    Convert a Java OptionalLong to a generic Java Optional

  3. def toScala: Option[Long]

    Convert a Java OptionalLong to a Scala Option

Deprecated Value Members

  1. def asScala: Option[Long]

    Convert a Java OptionalLong to a Scala Option

    Convert a Java OptionalLong to a Scala Option

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toScala instead