Enum

Class Enum<E extends Enum<E>>

Type Parameters:
E - The enum type subclass
All Implemented Interfaces:
Serializable, Comparable<E>
public abstract class Enum<E extends Enum<E>>
extends Object
implements Comparable<E>, Serializable

This is the common base class of all Java language enumeration types. More information about enums, including descriptions of the implicitly declared methods synthesized by the compiler, can be found in section 8.9 of The Java™ Language Specification.

Note that when