scala / 3.1.1 / scala / jdk / optionconverters$$richoptionalint.html /

Class scala.jdk.RichOptionalInt

final implicit class RichOptionalInt(o: OptionalInt) extends AnyVal

Provides conversions from OptionalInt to Scala Option and the generic Optional

Supertypes

Concrete methods

Source

Convert a Java OptionalInt to a generic Java Optional

Source
def toScala: Option[ Int]

Convert a Java OptionalInt to a Scala Option

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/jdk/OptionConverters$$RichOptionalInt.html