public enum DayOfWeekType extends java.lang.Enum<DayOfWeekType>
Enum Constant and Description |
---|
FRIDAY
Friday
|
MONDAY
Monday
|
SATURDAY
Saturday
|
SUNDAY
Sunday
|
THURSDAY
Thursday
|
TUESDAY
Tuesday
|
WEDNESDAY
Wednesday
|
Modifier and Type | Method and Description |
---|---|
static java.util.EnumSet<DayOfWeekType> |
getDaysOfWeek(long value)
Translates a numeric value into a Set of DayOfWeekType enums.
|
long |
getValue()
Gets the value.
|
static DayOfWeekType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayOfWeekType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayOfWeekType SUNDAY
public static final DayOfWeekType MONDAY
public static final DayOfWeekType TUESDAY
public static final DayOfWeekType WEDNESDAY
public static final DayOfWeekType THURSDAY
public static final DayOfWeekType FRIDAY
public static final DayOfWeekType SATURDAY
public static DayOfWeekType[] values()
for (DayOfWeekType c : DayOfWeekType.values()) System.out.println(c);
public static DayOfWeekType 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 long getValue()
public static java.util.EnumSet<DayOfWeekType> getDaysOfWeek(long value)
value
- the value