public abstract class Enum extends Number implements NumberType, Comparable, Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Enum.EnumType |
RADIX_BIN, RADIX_HEX, RADIX_OCT| Modifier | Constructor and Description |
|---|---|
protected |
Enum() |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
int |
compareTo(Object otherEnum) |
protected static Enum |
create() |
protected static Enum |
create(String name) |
Class |
ensureClassLoaded() |
boolean |
equals(Object obj) |
String |
getName() |
Number |
getValue() |
int |
hashCode() |
protected Object |
readResolve() |
short |
shortValue() |
String |
toString() |
protected Object |
writeReplace() |
doubleValue, floatValue, intValue, longValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitdoubleValue, floatValue, intValue, longValue, toBinaryString, toHexString, toOctalStringprotected static final Enum create()
public String getName()
public Number getValue()
public byte byteValue()
byteValue in interface NumberTypebyteValue in class Numberpublic short shortValue()
shortValue in interface NumberTypeshortValue in class Numberpublic int compareTo(Object otherEnum)
compareTo in interface Comparablepublic Class ensureClassLoaded()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionCopyright © 2024. All rights reserved.