OptionShape

scala.jdk.OptionShape
See theOptionShape companion object
sealed abstract class OptionShape[A, O]

A type class implementing conversions from a generic Scala Option or Java Optional to a specialized Java variant (for Double, Int and Long).

Type parameters

A

the primitive type wrapped in an option

O

the specialized Java Optional wrapping an element of type A

Attributes

Companion
object
Source
OptionShape.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def fromJava(o: Optional[A]): O

Converts from Optional to the specialized variant O

Converts from Optional to the specialized variant O

Attributes

Source
OptionShape.scala
def fromScala(o: Option[A]): O

Converts from Option to the specialized variant O

Converts from Option to the specialized variant O

Attributes

Source
OptionShape.scala