The superclass of the scala.Enum.Value type.
The superclass of the scala.Enum.Value type. This class
can be overridden to change the enumeration's naming and integer
identification behaviour, as well as to add additional public
functionality.
The type of the enumerated values.
A class for sets of values.
A class for sets of values. Iterating through this set will yield values in increasing order of their ids.
An ordering by id for values of this set
A factory object for value sets
The value of this enumeration with given id x
The one higher than the highest integer amongst those used to identify values in this enumeration.
The integer to use to identify the next created value.
The integer to use to identify the next created value.
The string to use to name the next created value.
The string to use to name the next created value.
The name of this enumeration.
The name of this enumeration.
The values of this enumeration as a set.
Return a Value from this Enum whose name matches
the argument s.
Return a Value from this Enum whose name matches
the argument s. The names are determined automatically via reflection.
an Enum name
the Value of this Enum if its name matches s
NoSuchElementException if no Value with a matching
name is in this Enum
(Since version ) see corresponding Javadoc for more information.
Defines a finite set of values specific to the enumeration. Typically these values enumerate all possible forms something can take and provide a lightweight alternative to case classes.
Each call to a
Valuemethod adds a new unique value to the enumeration. To be accessible, these values are usually defined asvalmembers of the evaluation.All values in an enumeration share a common, unique type defined as the abstract
Valuetype member of the enumeration (Valueselected on the stable identifier path of the enumeration instance). Besides, in contrast to Scala's built-in Enumeration, theValuetype member can be extended in subclasses, such that it is possible to mix-in traits, for example. In this case, make sure to make the constructor ofValueprivate. Example: