trait
Empty[+A] extends api.Api.Any
Abstract Value Members
-
abstract
def
empty: A
-
abstract
def
getClass(): Class[_]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
equals(arg0: Any): Boolean
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
toString(): String
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.