public enum Weekday extends java.lang.Enum<Weekday>
Weekday.SU.ordinal() ==
0,
Weekday.MO.ordinal() == 1 ...).
Please note that the ordinal value is not compatible with the day values of Calendar.
| 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 SU
public static final Weekday MO
public static final Weekday TU
public static final Weekday WE
public static final Weekday TH
public static final Weekday FR
public static final Weekday SA
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