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