|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.lang.EnumImpl<E>
public abstract class EnumImpl<E extends EnumImpl<E>>
Mapping of the java.lang.Enum.
| Constructor Summary | |
|---|---|
protected |
EnumImpl(String name,
int ordinal)
Create an enum type. |
| Method Summary | ||
|---|---|---|
protected Object |
clone()
|
|
int |
compareTo(E o)
|
|
boolean |
equals(Object other)
|
|
Class<E> |
getDeclaringClass()
|
|
int |
hashCode()
|
|
String |
name()
|
|
int |
ordinal()
|
|
String |
toString()
|
|
static
|
valueOf(Class<T> enumType,
String name)
Obtain the Enum of enumType for the given name. |
|
static
|
values(Class<T> enumType)
Obtain the array of Enums for enumType. |
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected EnumImpl(String name,
int ordinal)
name - - the string representation of the enumordinal - - the int representation of the enumorg.jboss.weaver.retro.WeaverRetroJdk14#rewriteEnum(ClassLoader, CompilerClassInfo)| Method Detail |
|---|
public static <T extends EnumImpl<T>> T valueOf(Class<T> enumType,
String name)
enumType - - the class for the enum typename - - the string representation of the enum type
public static <T extends EnumImpl<T>> T[] values(Class<T> enumType)
enumType - - the class for the enum type
public final String name()
public final int ordinal()
public String toString()
toString in class Objectpublic final boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic final int compareTo(E o)
compareTo in interface Comparable<E extends EnumImpl<E>>
protected final Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic final Class<E> getDeclaringClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||