← ZIO Prelude docs

Absent

zio.prelude.data.Optional.Absent
case object Absent extends Optional[Nothing]

Optional value that is absent

Attributes

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

Members list

Type members

Inherited classlikes

class WithFilter(p: A => Boolean)

Attributes

Inherited from:
Optional
Source
Optional.scala
Supertypes
class Object
trait Matchable
class Any

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Inherited and Abstract types

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

override def isDefined: Boolean

Attributes

Definition Classes
Source
Optional.scala
override def isEmpty: Boolean

Attributes

Definition Classes
Source
Optional.scala
override def nonEmpty: Boolean

Attributes

Definition Classes
Source
Optional.scala

Inherited methods

final def collect[B](pf: PartialFunction[Nothing, B]): Optional[B]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def contains[A1](elem: A1): Boolean

Attributes

Inherited from:
Optional
Source
Optional.scala
final def exists(p: Nothing => Boolean): Boolean

Attributes

Inherited from:
Optional
Source
Optional.scala
final def filter(p: Nothing => Boolean): Optional[Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def filterNot(p: Nothing => Boolean): Optional[Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def flatMap[B](f: Nothing => Optional[B]): Optional[B]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def flatten[B](implicit ev: Nothing <:< Optional[B]): Optional[B]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def fold[B](ifEmpty: => B)(f: Nothing => B): B

Attributes

Inherited from:
Optional
Source
Optional.scala
final def forall(p: Nothing => Boolean): Boolean

Attributes

Inherited from:
Optional
Source
Optional.scala
final def foreach[U](f: Nothing => U): Unit

Attributes

Inherited from:
Optional
Source
Optional.scala

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
final def getOrElse[A0](default: => A0): A0

Attributes

Inherited from:
Optional
Source
Optional.scala
final override def iterator: Iterator[Nothing]

Attributes

Definition Classes
Inherited from:
Optional
Source
Optional.scala
final override def knownSize: Int

Copied from Option.knownSize

Copied from Option.knownSize

Attributes

Definition Classes
Inherited from:
Optional
Source
Optional.scala
final def map[B](f: Nothing => B): Optional[B]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def orElse[B](alternative: => Optional[B]): Optional[B]

Attributes

Inherited from:
Optional
Source
Optional.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Nothing, S]): S

Attributes

Inherited from:
IterableOnce
final def toChunk: Chunk[Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def toLeft[R](right: R): Either[Nothing, R]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def toList: List[Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def toOption: Option[Nothing]

Converts this optional value to standard scala.Option

Converts this optional value to standard scala.Option

Attributes

Inherited from:
Optional
Source
Optional.scala
final def toRight[L](left: L): Either[L, Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def toVector: Vector[Nothing]

Attributes

Inherited from:
Optional
Source
Optional.scala
final def withFilter(p: Nothing => Boolean): WithFilter

Attributes

Inherited from:
Optional
Source
Optional.scala