Enum Constant and Description |
---|
FRIDAY
Friday.
|
MONDAY
Monday.
|
SATURDAY
Saturday.
|
SUNDAY
Sunday.
|
THURSDAY
Thursday.
|
TUESDAY
Tuesday.
|
WEDNESDAY
Wednesday.
|
Modifier and Type | Method and Description |
---|---|
static Weekday |
valueOf(java.lang.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 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 SUNDAY
public static Weekday[] values()
for (Weekday c : Weekday.values()) System.out.println(c);
public static Weekday 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 null