Enum Class DayOfWeek
- All Implemented Interfaces:
EnumClass<Integer>
,Serializable
,Comparable<DayOfWeek>
,Constable
The enum represents day of week with ids that corresponds the order in full calendar component.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DayOfWeek
fromDayOfWeek
(DayOfWeek dayOfWeek) Returns day of week fromDayOfWeek
static DayOfWeek
getId()
static DayOfWeek
Returns the enum constant of this class with the specified name.static DayOfWeek[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MONDAY
-
TUESDAY
-
WEDNESDAY
-
THURSDAY
-
FRIDAY
-
SATURDAY
-
SUNDAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
-
fromId
- Parameters:
id
- the ID of enum instance- Returns:
- enum instance or
null
if there is no enum with the provided ID
-
fromDayOfWeek
Returns day of week fromDayOfWeek
- Parameters:
dayOfWeek
- dayOfWeek to convert- Returns:
- day of week
-