|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WeekDay>
de.espirit.common.util.WeekDay
public enum WeekDay
Days of a week: WeekDay.SUNDAY
, WeekDay.MONDAY
, WeekDay.TUESDAY
, WeekDay.WEDNESDAY
, WeekDay.THURSDAY
,
WeekDay.FRIDAY
, and WeekDay.SATURDAY
.
Enum Constant Summary | |
---|---|
FRIDAY
A week day. |
|
MONDAY
A week day. |
|
SATURDAY
A week day. |
|
SUNDAY
A week day. |
|
THURSDAY
A week day. |
|
TUESDAY
A week day. |
|
WEDNESDAY
A week day. |
Method Summary | |
---|---|
static WeekDay[] |
getSortedWeekDays()
A sorted array of week days where the first week day in the returned array is locale dependent (on some locales the first day of a week is WeekDay.SUNDAY and on some it is WeekDay.MONDAY ). |
String |
toString()
The locale dependent name of the week day, e.g. on a french locale WeekDay.MONDAY .toString() will return
"Lundi". |
static WeekDay |
valueOf(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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final WeekDay[] values()
for(WeekDay c : WeekDay.values()) System.out.println(c);
public static WeekDay valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String toString()
WeekDay.MONDAY
.toString() will return
"Lundi".
toString
in class Enum<WeekDay>
public static WeekDay[] getSortedWeekDays()
WeekDay.SUNDAY
and on some it is WeekDay.MONDAY
).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |