trait NamedEnum extends Serializable

Base trait for enums implemented as sealed hierarchy with case objects where every enum value has distinct textual representation (name).

Typically, if a trait or class extends NamedEnum, its companion object extends NamedEnumCompanion. Enum values can then be looked up by name using NamedEnumCompanion.byName.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NamedEnum
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def name: String

    Used as a key for a map returned from byName.

    Used as a key for a map returned from byName. It is recommended to override this method uniquely by each case object in the sealed hierarchy.

Concrete Value Members

  1. def toString(): String
    Definition Classes
    NamedEnum → AnyRef → Any