trait AutoNamedEnum extends NamedEnum with Product
Subtrait of NamedEnum which requires its values to be Product
s and uses Product.productPrefix
as
the name of each enum constant. In practice this means that all the objects extending AutoNamedEnum should
be case object
s 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
- Alphabetic
- By Inheritance
Inherited
- AutoNamedEnum
- Product
- Equals
- NamedEnum
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
Concrete Value Members
-
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
- AutoNamedEnum → NamedEnum
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
-
def
toString(): String
- Definition Classes
- NamedEnum → AnyRef → Any