The type of the enumerated values.
A class for sets of values Iterating through this set will yield values in increasing order of their ids.
A factory object for value sets
The value of this enumeration with given id x
Apply a predicate p to all values of this enumeration and return true, iff there is at least one value for which p yields true.
Apply a predicate p to all values of this enumeration and return true, iff there is at least one value for which p yields true.
use values.exists instead
Returns all values of this enumeration that satisfy the predicate p.
Returns all values of this enumeration that satisfy the predicate p. The order of values is preserved.
use values.filter instead
Applies the given function f to each value of this enumeration, then concatenates the results.
Applies the given function f to each value of this enumeration, then concatenates the results.
use values.flatMap instead
Apply a predicate p to all values of this enumeration and return true, iff the predicate yields true for all values.
Apply a predicate p to all values of this enumeration and return true, iff the predicate yields true for all values.
use values.forall instead
Apply a function f to all values of this enumeration.
Apply a function f to all values of this enumeration.
use values.foreach instead
A new iterator over all values of this enumeration.
A new iterator over all values of this enumeration.
use values.iterator instead
Returns an iterator resulting from applying the given function f to each value of this enumeration.
Returns an iterator resulting from applying the given function f to each value of this enumeration.
use values.map instead
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.
The name of this enumeration.@return a string representation of the object. */
use withName instead
The values of this enumeration as a set.
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