public enum BackupFrequency extends java.lang.Enum<BackupFrequency>
枚举常量和说明 |
---|
ONE_DAY
1天
|
ONE_MONTH
1月
|
ONE_WEEK
1周
|
SIX_MONTH
6月
|
THREE_MONTH
3月
|
限定符和类型 | 方法和说明 |
---|---|
static BackupFrequency |
fromInteger(int value) |
int |
getNum() |
java.lang.String |
getUnit() |
int |
getValue() |
void |
setNum(int num) |
void |
setUnit(java.lang.String unit) |
void |
setValue(int value) |
static BackupFrequency |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static BackupFrequency[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BackupFrequency ONE_DAY
public static final BackupFrequency ONE_WEEK
public static final BackupFrequency ONE_MONTH
public static final BackupFrequency THREE_MONTH
public static final BackupFrequency SIX_MONTH
public static BackupFrequency[] values()
for (BackupFrequency c : BackupFrequency.values()) System.out.println(c);
public static BackupFrequency valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static BackupFrequency fromInteger(int value)
public int getValue()
public void setValue(int value)
public int getNum()
public void setNum(int num)
public java.lang.String getUnit()
public void setUnit(java.lang.String unit)