public enum EnumType extends Enum<EnumType>
| 枚举常量和说明 |
|---|
ORDINAL
Persist enumerated type property or field as an integer
|
STRING
Persist enumerated type property or field as a string
|
public static final EnumType ORDINAL
public static final EnumType STRING
public static EnumType[] values()
for (EnumType c : EnumType.values()) System.out.println(c);
public static EnumType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2016. All rights reserved.