t

com.avsystem.commons.misc

AutoNamedEnum

trait AutoNamedEnum extends NamedEnum with Product

Subtrait of NamedEnum which requires its values to be Products and uses Product.productPrefix as the name of each enum constant. In practice this means that all the objects extending AutoNamedEnum should be case objects so that object names are automatically used as enum constant names. That's because case classes and objects automatically implement Product and use their source name as Product.productPrefix.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AutoNamedEnum
  2. Product
  3. Equals
  4. NamedEnum
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. 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.

    Definition Classes
    AutoNamedEnumNamedEnum
  2. def productIterator: Iterator[Any]
    Definition Classes
    Product
  3. def productPrefix: String
    Definition Classes
    Product
  4. def toString(): String
    Definition Classes
    NamedEnum → AnyRef → Any