public enum WeekDay extends Enum<WeekDay>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static WeekDay[] |
getSortedWeekDays()
|
String |
toString()
The locale dependent name of the week day, e.g. on a french locale
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 are declared.
|
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
public static 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 nameNullPointerException
- if the argument is nullpublic String toString()
MONDAY
.toString() will return
"Lundi".Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500