Packages

c

scala.jdk.OptionConverters

RichOptionalInt

implicit final class RichOptionalInt extends AnyVal

Provides conversions from OptionalInt to Scala Option and the generic Optional

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

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[Int]

    Convert a Java OptionalInt to a generic Java Optional

  3. def toScala: Option[Int]

    Convert a Java OptionalInt to a Scala Option

Deprecated Value Members

  1. def asScala: Option[Int]

    Convert a Java OptionalInt to a Scala Option

    Convert a Java OptionalInt to a Scala Option

    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use toScala instead