Packages

  • package root
    Definition Classes
    root
  • package zio
    Definition Classes
    root
  • package prelude
    Definition Classes
    zio
  • package data
    Definition Classes
    prelude
  • sealed trait Optional[+A] extends AnyRef

    Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.

    Custom option type to be used for wrapping external data models where most of the fields are defined to be optional.

    Instances of Optional are either Optional.Present or Optional.Absent.

    The only difference between this type and scala.Option is that there is an implicit conversion defined from A to Optional[A], and from Option[A] to Optional[A].

    Definition Classes
    data
  • WithFilter

class WithFilter extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithFilter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WithFilter(p: (A) => Boolean)

Value Members

  1. def flatMap[B](f: (A) => Optional[B]): Optional[B]
  2. def foreach[U](f: (A) => U): Unit
  3. def map[B](f: (A) => B): Optional[B]
  4. def withFilter(q: (A) => Boolean): WithFilter