Package org.opencms.acacia.shared
Enum I_CmsSerialDateValue.WeekDay
- All Implemented Interfaces:
Serializable
,Comparable<I_CmsSerialDateValue.WeekDay>
,java.lang.constant.Constable
- Enclosing interface:
- I_CmsSerialDateValue
Enumeration representing the week days.
-
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 I_CmsSerialDateValue.WeekDay
fromInt
(int i) Conversion of integers to weekdays.int
toInt()
Object Converts theI_CmsSerialDateValue.WeekDay
to it's corresponding number, i.e.static I_CmsSerialDateValue.WeekDay
Returns the enum constant of this type with the specified name.static I_CmsSerialDateValue.WeekDay[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUNDAY
Sunday -
MONDAY
Monday -
TUESDAY
Tuesday -
WEDNESDAY
Wednesday -
THURSDAY
Thursday -
FRIDAY
Friday -
SATURDAY
Saturday
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromInt
Conversion of integers to weekdays. The conversion is NOT the inverse of the ordinals. The enumeration here starts with 1, i.e., fromInt(i).ordinal() == i-1. The shift is added to get the numbers as used inCalendar
.- Parameters:
i
- the number of the weekday (starting with 1 for Sunday)- Returns:
- the
I_CmsSerialDateValue.WeekDay
that corresponds to the given number.
-
toInt
Object Converts theI_CmsSerialDateValue.WeekDay
to it's corresponding number, i.e. it's ordinal plus 1. The numbers correspond to the numbers for weekdays used byCalendar
.- Returns:
- the number corresponding to the weekday.
-