|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Recurrence.DayOfWeek>
biweekly.util.Recurrence.DayOfWeek
public static enum Recurrence.DayOfWeek
Represents each of the seven days of the week.
Enum Constant Summary | |
---|---|
FRIDAY
|
|
MONDAY
|
|
SATURDAY
|
|
SUNDAY
|
|
THURSDAY
|
|
TUESDAY
|
|
WEDNESDAY
|
Method Summary | |
---|---|
String |
getAbbr()
Gets the day's abbreviation. |
static Recurrence.DayOfWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Recurrence.DayOfWeek |
valueOfAbbr(String abbr)
Gets a day by its abbreviation. |
static Recurrence.DayOfWeek[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Recurrence.DayOfWeek MONDAY
public static final Recurrence.DayOfWeek TUESDAY
public static final Recurrence.DayOfWeek WEDNESDAY
public static final Recurrence.DayOfWeek THURSDAY
public static final Recurrence.DayOfWeek FRIDAY
public static final Recurrence.DayOfWeek SATURDAY
public static final Recurrence.DayOfWeek SUNDAY
Method Detail |
---|
public static Recurrence.DayOfWeek[] values()
for (Recurrence.DayOfWeek c : Recurrence.DayOfWeek.values()) System.out.println(c);
public static Recurrence.DayOfWeek valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getAbbr()
public static Recurrence.DayOfWeek valueOfAbbr(String abbr)
abbr
- the abbreviation (case-insensitive, e.g. "MO" for Monday)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |