|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.util.Enum
public class Enum
Base class for enum classes. Each enum value contains a name and an integer identifier.
Constructor Summary | |
---|---|
protected |
Enum(int value,
java.lang.String name)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Enum(int value, java.lang.String name)
Method Detail |
---|
public int getValue()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.ObjectOutputStream out) throws java.io.IOException
Writable
write
in interface Writable
out
- the stream
java.io.IOException
- if there is a stream errorprotected static java.lang.Object getObject(java.lang.Class cl, int value) throws java.io.IOException
java.io.IOException
protected static java.lang.Object decode(java.lang.Class cl, java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |