public enum WeekDay extends java.lang.Enum<WeekDay> implements HasMessageKey
| Enum Constant and Description |
|---|
FRIDAY |
MONDAY |
SATURDAY |
SUNDAY |
THURSDAY |
TUESDAY |
WEDNESDAY |
| Modifier and Type | Method and Description |
|---|---|
static WeekDay |
fromCalendar(int weekDay)
Returns a
WeekDay from the Calendar representation of week days: sunday = 1 .. |
MessageKey |
getMessageKey() |
static EnumMessageKeyResolver<WeekDay> |
resolverForShort()
Returns an
EnumMessageKeyResolver to translate a week day into the short form |
static WeekDay |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static WeekDay fromCalendar(int weekDay)
WeekDay from the Calendar representation of week days: sunday = 1 .. saturday = 7public static EnumMessageKeyResolver<WeekDay> resolverForShort()
EnumMessageKeyResolver to translate a week day into the short formpublic MessageKey getMessageKey()
getMessageKey in interface HasMessageKey