Java java.lang Enum fields, constructors, methods, implement or subclass

Example usage for Java java.lang Enum fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Enum.

The text is from its open source code.

Subclass

java.lang.Enum has subclasses.
Click this link to see all its subclasses.

Field

Stringname
The name of this enum constant, as declared in the enum declaration.
intordinal
The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero).

Constructor

Method

booleanequals(Object other)
Returns true if the specified object is equal to this enum constant.
ClassgetClass()
Returns the runtime class of this Object .
ClassgetDeclaringClass()
Returns the Class object corresponding to this enum constant's enum type.
StringtoString()
Returns the name of this enum constant, as contained in the declaration.
TvalueOf(Class enumType, String name)
Returns the enum constant of the specified enum type with the specified name.