Optional

zio.prelude.data.Optional
See theOptional companion trait
object Optional

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Optional.type

Members list

Type members

Classlikes

case object Absent extends Optional[Nothing]

Optional value that is absent

Optional value that is absent

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Optional[Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Absent.type
final case class Present[+A](get: A) extends Optional[A]

Optional value that is present

Optional value that is present

Type parameters

A

type of the value

Value parameters

get

the value

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Optional[A]
class Object
trait Matchable
class Any
Show all

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Implicits

Implicits

implicit def AllValuesAreNullable[A](value: A): Optional[A]
implicit def OptionIsNullable[A](value: Option[A]): Optional[A]