enumerated type
Java
A data type - not directly available in Java - in which symbolic names are used for a sequence of constant numeric values. They facilitate the avoidance of magic numbers. They can be simulated in Java with fields in an interface, for instance
public interface States { public static final int Stop = 0, Go = 1; } However, the compiler type checking usually available with enumerated types is not available with this form.A type whose legal values consist of a fixed set of constants.