The initial value from which to count the integers that identifies values at run-time.
A class implementing the scala.Enumeration.Value type.
The type of the enumerated values.
A class for sets of values.
Creates a fresh value, part of this enumeration, called name
and identified by the integer i
.
Creates a fresh value, part of this enumeration, called name
and identified by the integer i
.
An integer that identifies this value at run-time. It must be unique amongst all values of the enumeration.
A human-readable name for that value.
Fresh value with the provided identifier i
and name name
.
Creates a fresh value, part of this enumeration, called name
.
Creates a fresh value, part of this enumeration, called name
.
A human-readable name for that value.
Fresh value called name
.
Creates a fresh value, part of this enumeration, identified by the
integer i
.
Creates a fresh value, part of this enumeration, identified by the
integer i
.
An integer that identifies this value at run-time. It must be unique amongst all values of the enumeration.
Fresh value identified by i
.
Creates a fresh value, part of this enumeration.
Creates a fresh value, part of this enumeration.
An ordering by id for values of this set
A factory object for value sets
The value of this enumeration with given id x
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
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 Enumeration
whose name matches
the argument s
.
Return a Value
from this Enumeration
whose name matches
the argument s
. The names are determined automatically via reflection.
an Enumeration
name
the Value
of this Enumeration
if its name matches s
if no Value
with a matching
name is in this Enumeration
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).