Packages

trait Optional[A] extends Serializable

Type class that represents data types that have an "empty" value.

The purpose of this type class is to allow automatic derivation of Decoder for decoded types that might not have a value - Option, List...

In theory, there should rarely be a need to interact directly with this type class, and one is usually better served by obtaining the Decoder instance for Option and mapping on it.

Source
Optional.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Optional
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def empty: A

Concrete Value Members

  1. def isEmpty(a: A): Boolean