public static enum Fields.Week extends Enum<Fields.Week>
| Enum Constant and Description |
|---|
FRIDAY
周五
|
MONDAY
周一
|
SATURDAY
周六
|
SUNDAY
周日
|
THURSDAY
周四
|
TUESDAY
周二
|
WEDNESDAY
周三
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
获得星期对应
Calendar 中的Week值 |
static Fields.Week |
of(int calendarWeekIntValue)
将
Calendar星期相关值转换为Week枚举对象 |
String |
toChinese()
转换为中文名
|
String |
toChinese(String weekNamePre)
转换为中文名
|
static Fields.Week |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fields.Week[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fields.Week SUNDAY
public static final Fields.Week MONDAY
public static final Fields.Week TUESDAY
public static final Fields.Week WEDNESDAY
public static final Fields.Week THURSDAY
public static final Fields.Week FRIDAY
public static final Fields.Week SATURDAY
public static Fields.Week[] values()
for (Fields.Week c : Fields.Week.values()) System.out.println(c);
public static Fields.Week valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Fields.Week of(int calendarWeekIntValue)
Calendar星期相关值转换为Week枚举对象public String toChinese()
Copyright © 2020. All rights reserved.