← ZIO Prelude docs

Optional

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

Attributes

Companion
trait
Source
Optional.scala
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

Source
Optional.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Optional[Nothing]
trait IterableOnce[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

Source
Optional.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Optional[A]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Implicits

Implicits

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

Attributes

Source
Optional.scala
implicit def OptionIsNullable[A](value: Option[A]): Optional[A]

Attributes

Source
Optional.scala