Trait

psp.api

Empty

Related Doc: package api

Permalink

trait Empty[+A] extends api.Api.Any

The original type class for providing the "empty" value of a particular type. Suitable only for types with a unique (useful) definition of empty - but that's a lot of types. You could easily recover the behavior of methods like Option.get or Seq.head by creating a default instance of Empty[A] which throws an exception.

Linear Supertypes
Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Empty
  2. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def empty: A

    Permalink
  2. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  6. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from Any

Ungrouped