public enum CalendarDayOfWeek extends Enum<CalendarDayOfWeek> implements CalendarFieldEnum<CalendarDayOfWeek,Integer>
Calendar.DAY_OF_WEEK.| Enum Constant and Description |
|---|
FRIDAY
Constant for
Calendar.FRIDAY. |
MONDAY
Constant for
Calendar.MONDAY. |
SATURDAY
Constant for
Calendar.SATURDAY. |
SUNDAY
Constant for
Calendar.SUNDAY. |
THURSDAY
Constant for
Calendar.THURSDAY. |
TUESDAY
Constant for
Calendar.TUESDAY. |
WEDNESDAY
Constant for
Calendar.WEDNESDAY. |
| Modifier and Type | Field and Description |
|---|---|
static int |
CALENDAR_FIELD
The target field of
Calendar which this enum type is for. |
| Modifier and Type | Method and Description |
|---|---|
Integer[] |
fieldValues()
Returns an array containing the field values of this enum type, in order
they are declared.
|
static CalendarDayOfWeek |
fromCalendar(Calendar calendar)
Returns the enum constant of this type with the specified calendar's
field value.
|
static CalendarDayOfWeek |
fromFieldValue(int fieldValue)
Returns the enum constant of this type with the specified field value.
|
Integer |
getFieldValue()
Returns field value.
|
void |
set(Calendar calendar) |
static CalendarDayOfWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarDayOfWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarDayOfWeek SUNDAY
Calendar.SUNDAY.public static final CalendarDayOfWeek MONDAY
Calendar.MONDAY.public static final CalendarDayOfWeek TUESDAY
Calendar.TUESDAY.public static final CalendarDayOfWeek WEDNESDAY
Calendar.WEDNESDAY.public static final CalendarDayOfWeek THURSDAY
Calendar.THURSDAY.public static final CalendarDayOfWeek FRIDAY
Calendar.FRIDAY.public static final CalendarDayOfWeek SATURDAY
Calendar.SATURDAY.public static final int CALENDAR_FIELD
Calendar which this enum type is for.Calendar.DAY_OF_WEEK,
Constant Field Valuespublic static CalendarDayOfWeek[] values()
for (CalendarDayOfWeek c : CalendarDayOfWeek.values()) System.out.println(c);
public static CalendarDayOfWeek valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static CalendarDayOfWeek fromFieldValue(int fieldValue)
fieldValue - field valueIllegalArgumentException - if this enum type has no constant with
the specified field value.public static CalendarDayOfWeek fromCalendar(Calendar calendar)
calendar - calendarIllegalArgumentException - if this enum type has no constant with
the specified calendar's field value.public Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<CalendarDayOfWeek,Integer>public void set(Calendar calendar)
set in interface CalendarFieldEnum<CalendarDayOfWeek,Integer>Copyright © 2011-2013. All Rights Reserved.