java.lang.Object | ||
java.lang.Enum<E extends java.lang.Enum<E>> | Serializable Comparable<T> |
The superclass of all enumerated types.
Enum(String name, int ordinal) | ||||||
Constructor for enum subtypes. |
final | int | compareTo(E o) | ||||
Returns the comparative ordering of the receiver and the given argument. | ||||||
final | boolean | equals(Object other) | ||||
Returns true only if the receiver is equal to the argument. | ||||||
final | Class<E> | getDeclaringClass() | ||||
Returns the enum constant's declaring class. | ||||||
final | int | hashCode() | ||||
Returns the hash of the receiver. | ||||||
final | String | name() | ||||
Returns the name of the enum constant. | ||||||
final | int | ordinal() | ||||
Returns the position of the enum constant in the declaration. | ||||||
String | toString() | |||||
Answer a string representation of the receiver suitable for display to a programmer. | ||||||
static | <T extends Enum<T>> | T | valueOf(Class<T> enumType, String name) | |||
Returns the named constant of the given enum type. |
final | Object | clone() | ||||
Enums are singletons, they may not be cloned. |
name | the enum constant declared name. |
---|---|
ordinal | the enum constant position ordinal. |
other | Object the object to compare with this object. |
---|
Enum
declaration.
enumType | the class of the enumerated type to search for the constant value. |
---|---|
name | the name of the constant value to find. |
NullPointerException | if either the enumType or name
are null . |
---|---|
IllegalArgumentException | if enumType is not an enumerated type or does
not have a constant value called name .
|
CloneNotSupportedException |
---|
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |