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