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