The initial value from which to count the integers that identifies values at run-time.
The sequence of names to give to this enumeration's values.
A factory object for value sets
The value of this enumeration with given id x
The value of this enumeration with given id x
The highest integer amongst those used to identify values in this enumeration.
The highest integer amongst those used to identify values in this enumeration.
The name of this enumeration.
The name of this enumeration.
a String representation of the object.
The values of this enumeration as a set.
Returns a Value from this Enumeration whose name matches the argument s.
Returns a Value from this Enumeration whose name matches the argument s.
You can pass a String* set of names to the constructor, or initialize each Enumeration with Value(String). Otherwise, the names are determined automatically through reflection.
Note the change here wrt 2.7 is intentional. You should know whether a name is in an Enumeration beforehand. If not, just use find on values.
an Enumeration name
the Value of this Enumeration if its name matches s
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
Value
method adds a new unique value to the enumeration. To be accessible, these values are usually defined asval
members of the evaluation.All values in an enumeration share a common, unique type defined as the
Value
type member of the enumeration (Value
selected on the stable identifier path of the enumeration instance).