Enum Constant and Description |
---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
Modifier and Type | Method and Description |
---|---|
int |
getCalendarWeekday() |
java.lang.String |
getValue() |
static Weekday |
getWeekday(java.util.Calendar jCalendar) |
static Weekday |
getWeekday(int dayOfTheWeek) |
static Weekday |
parse(java.lang.String value) |
java.lang.String |
toString() |
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 SUNDAY
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 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 getWeekday(java.util.Calendar jCalendar)
public static Weekday getWeekday(int dayOfTheWeek)
public static Weekday parse(java.lang.String value)
public int getCalendarWeekday()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<Weekday>