The initial value from which to count the integers that identifies values at run-time.
A class implementing the scala.Enumeration.Value type.
A class implementing the scala.Enumeration.Value type. This class can be overridden to change the enumeration's naming and integer identification behaviour.
The type of the enumerated values.
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.
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
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
NoSuchElementException
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).