|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DayOfWeek>
biz.onixs.fix.scheduler.DayOfWeek
public enum DayOfWeek
Day of Week.
The first day of week is Monday which numeric value is 1 and short name is "MON".
The last day of week is Sunday which numeric value is 7 and short name is "SUN".
Enum Constant Summary | |
---|---|
FRIDAY
|
|
MONDAY
|
|
SATURDAY
|
|
SUNDAY
|
|
THURSDAY
|
|
TUESDAY
|
|
WEDNESDAY
|
Method Summary | |
---|---|
static DayOfWeek |
fromNumber(int value)
Returns day of week by numeric value. |
static DayOfWeek |
fromStringIgnoreCase(String name)
Returns day of week by full string name. The full string name is case insensitive. |
DayOfWeek |
getNextDay()
Returns next day of week. The week is cycled, i.e. |
int |
getNumber()
Returns numeric value. It is 1 for Monday and 7 for Sunday. |
String |
getShortName()
Returns short (3 letters) name in the uppercase. |
static DayOfWeek |
getToday()
Returns today day of week. |
boolean |
isBetween(DayOfWeek firstDay,
DayOfWeek lastDay)
Returns whether the day of week is in the specified interval. The week is cycled, i.e. |
static DayOfWeek |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static 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 DayOfWeek MONDAY
public static final DayOfWeek TUESDAY
public static final DayOfWeek WEDNESDAY
public static final DayOfWeek THURSDAY
public static final DayOfWeek FRIDAY
public static final DayOfWeek SATURDAY
public static final DayOfWeek SUNDAY
Method Detail |
---|
public static DayOfWeek[] values()
for (DayOfWeek c : DayOfWeek.values()) System.out.println(c);
public static 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 static DayOfWeek getToday()
public String getShortName()
public DayOfWeek getNextDay()
public int getNumber()
1
for Monday and 7
for Sunday.
public static DayOfWeek fromStringIgnoreCase(String name)
name
- full string name, i.g. Monday
IllegalArgumentException
- if string name is unexpectedpublic static DayOfWeek fromNumber(int value)
value
- numeric value
IllegalArgumentException
- if value is unexpectedpublic boolean isBetween(DayOfWeek firstDay, DayOfWeek lastDay)
firstDay
- interval startlastDay
- interval end
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |