|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.util.Enum
The abstract enum datatype. This is a helper to implement enumerated datatypes.
Mode
which is an enumerated datatype.
public class Mode extends Enum { private static final Mode[] ENUM = { new Mode(1, "EXCLUSIVE"), new Mode(2, "SUPERVISOR"), new Mode(3, "USER"), }; public static final Mode EXCLUSIVE = ENUM[0]; public static final Mode SUPERVISOR = ENUM[1]; public static final Mode USER = ENUM[2]; protected Mode(int enum, String value) { super(enum, value); } protected Enum[] getEnum() { return ENUM; } }
Method Summary |
Type | Method |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
intValue()
Get the integer value of this enum. |
java.lang.String |
toString()
Get the string value of this enum. |
Enum |
valueOf(int enum)
Get the Enum for this enum int value. |
Enum |
valueOf(java.lang.String value)
Get the enum for this value. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public Enum valueOf(java.lang.String value)
public Enum valueOf(int enum)
public int intValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |