All the symbols of the enumeration, sorted by id.
All the symbols of the enumeration, sorted by id.
Gets a Enum symbol by its name.
Gets a Enum symbol by its name.
provide the enum symbol's name.
the Enum symbol matching the given name.
NoSuchElementException
if no enum symbol is found for the given name
An extension of Enum supporting IndexedEnumSymbol symbols.
This is indented to provide functionality very close to that of scala.Enumeration to help ease conversions of types using scala.Enumeration's ids.
Example usage:
sealed abstract class Indexed(id: Int) extends IndexedEnumSymbol(id) object Indexed extends IndexedEnum[Indexed] { case object Zero extends Indexed(0) case object One extends Indexed(1) }