public enum RollType extends Enum<RollType>
| 枚举常量和说明 |
|---|
DAY_ROLL
日表
|
MONTH_ROLL
月表
|
NEVER_ROLL
固定
|
YEAR_ROLL
年表
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getValue() |
static RollType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RollType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RollType DAY_ROLL
public static final RollType MONTH_ROLL
public static final RollType YEAR_ROLL
public static final RollType NEVER_ROLL
public static RollType[] values()
for (RollType c : RollType.values()) System.out.println(c);
public static RollType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
Copyright © 2017. All rights reserved.