public abstract class Enum extends Number implements NumberType, Comparable, Serializable
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
Enum.EnumType |
RADIX_BIN, RADIX_HEX, RADIX_OCT| 限定符 | 构造器和说明 |
|---|---|
protected |
Enum() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, longValuedoubleValue, floatValue, intValue, longValue, toBinaryString, toHexString, toOctalStringprotected static final Enum create()
public String getName()
public Number getValue()
public byte byteValue()
byteValue 在接口中 NumberTypebyteValue 在类中 Numberpublic short shortValue()
shortValue 在接口中 NumberTypeshortValue 在类中 Numberpublic int compareTo(Object otherEnum)
compareTo 在接口中 Comparablepublic Class ensureClassLoaded()
protected Object writeReplace() throws ObjectStreamException
protected Object readResolve() throws ObjectStreamException
Copyright © 2019. All rights reserved.