public class Enum extends java.lang.Object implements java.io.Serializable, Writable
| Modifier | Constructor and Description |
|---|---|
protected |
Enum(int value,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.Object |
decode(java.lang.Class cl,
java.io.ObjectInputStream in) |
java.lang.String |
getName()
Return the name of this enum value.
|
protected static java.lang.Object |
getObject(java.lang.Class cl,
int value) |
int |
getValue()
Returns the integer identifier for this enum value.
|
protected java.lang.Object |
readResolve() |
java.lang.String |
toString() |
void |
write(java.io.ObjectOutputStream out)
Writes this object to an ObjectOutputStream.
|
public int getValue()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.ObjectOutputStream out)
throws java.io.IOException
Writableprotected static java.lang.Object getObject(java.lang.Class cl,
int value)
throws java.io.IOException
java.io.IOExceptionprotected static java.lang.Object decode(java.lang.Class cl,
java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException