public enum WeekDay extends Enum<WeekDay>
| Enum Constant and Description |
|---|
FRIDAY
周五
|
HOLIDAY
节假日
|
MONDAY
周一
|
SATURDAY
周六
|
SUNDAY
周日
|
THURSDAY
周四
|
TUESDAY
周二
|
WEDNESDAY
周三
|
| Modifier and Type | Method and Description |
|---|---|
static WeekDay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeekDay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeekDay SUNDAY
public static final WeekDay MONDAY
public static final WeekDay TUESDAY
public static final WeekDay WEDNESDAY
public static final WeekDay THURSDAY
public static final WeekDay FRIDAY
public static final WeekDay SATURDAY
public static final WeekDay HOLIDAY
public static WeekDay[] values()
for (WeekDay c : WeekDay.values()) System.out.println(c);
public static WeekDay 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 nullCopyright © 2023. All rights reserved.