Modifier and Type | Field and Description |
---|---|
int |
javaDayNum
agrees with the java weekday values as found in java.util.Calendar.
|
int |
jsDayNum
agrees with values returned by the javascript builtin Date.getDay and the
corresponding ical.js function/method, but is one less than the Java
Calendar's
DAY_OF_WEEK values. |
Modifier and Type | Method and Description |
---|---|
static Weekday |
firstDayOfWeekInMonth(int year,
int month) |
Weekday |
predecessor() |
Weekday |
successor() |
static Weekday |
valueOf(DateValue dv) |
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 final int jsDayNum
DAY_OF_WEEK
values.public final int javaDayNum
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 nullpublic static Weekday firstDayOfWeekInMonth(int year, int month)
public Weekday successor()
public Weekday predecessor()