|
|||||||||
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(java.lang.String name,
int ordinal)
Create an enum type. |
Method Summary | ||
---|---|---|
protected java.lang.Object |
clone()
|
|
int |
compareTo(E o)
|
|
boolean |
equals(java.lang.Object other)
|
|
java.lang.Class<E> |
getDeclaringClass()
|
|
int |
hashCode()
|
|
java.lang.String |
name()
|
|
int |
ordinal()
|
|
java.lang.String |
toString()
|
|
static
|
valueOf(java.lang.Class<T> enumType,
java.lang.String name)
Obtain the Enum of enumType for the given name. |
|
static
|
values(java.lang.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(java.lang.String name, int ordinal)
name
- - the string representation of the enumordinal
- - the int representation of the enumWeaver.rewriteEnum(ClassLoader, CompilerClassInfo)
Method Detail |
---|
public static <T extends EnumImpl<T>> T valueOf(java.lang.Class<T> enumType, java.lang.String name)
enumType
- - the class for the enum typename
- - the string representation of the enum type
public static <T extends EnumImpl<T>> T[] values(java.lang.Class<T> enumType)
enumType
- - the class for the enum type
public final java.lang.String name()
public final int ordinal()
public java.lang.String toString()
toString
in class java.lang.Object
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public final int compareTo(E o)
compareTo
in interface java.lang.Comparable<E extends EnumImpl<E>>
protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public final java.lang.Class<E> getDeclaringClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |