a common Java idiom where a class has a constant (small) number of immutable instances
a datatype containing a fixed set of constant values
a data type with user-specified values
a discrete type and thus it is compatible with the Indexes generic formal data type parameter
an abstract type the values of which are explicitly specified
an identifier of which option is selected from a set, e
a reference type with an unrestricted set of values
a set of constant integer values denoted by identifiers
a type in which the programmer designs the set of values that make up that type
a user-defined integer type
A type whose legal values consist of a fixed set of constants.
In computer programming, an enumerated type is an abstract data type, each of whose values take on exactly one of a finite set of identifiers chosen by the programmer. Enumerated types are typically used for categorical variables (like the suit of a card), which do not have any numerical order. At run-time, enumerated types are often implemented using integers (each identifier has a distinct integer value).