| Enum Constant and Description |
|---|
FRIDAY
星期五.
|
MONDAY
星期一.
|
SATURDAY
星期六.
|
SUNDAY
星期日.
|
THURSDAY
星期四.
|
TUESDAY
星期二.
|
WEDNESDAY
星期三.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
返回value
|
static Week |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Week[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Week MONDAY
public static final Week TUESDAY
public static final Week WEDNESDAY
public static final Week THURSDAY
public static final Week FRIDAY
public static final Week SATURDAY
public static final Week SUNDAY
public static Week[] values()
for (Week c : Week.values()) System.out.println(c);
public static Week valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()