|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openspml.v2.util.EnumConstant
Many thanks to JavaWorld. http://www.javaworld.com/javaworld/javatips/jw-javatip133.html
All subclasses of this class:
Constructor Summary | |
EnumConstant()
|
Method Summary | |
protected static java.util.List |
getEnumConstants(java.lang.Class cls)
Return the constants, in the order declared. |
java.lang.Object |
readResolve()
Replace the deserialized instance with the local static instance to allow correct usage of == operator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnumConstant()
Method Detail |
public java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
protected static java.util.List getEnumConstants(java.lang.Class cls)
public static FooEnum[] getConstants() { List temp = FOO.getEnumConstants(); return (FooEnum[]) temp.toArray(new FooEnum[temp.size()]); }
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |