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