Package org.opencms.acacia.shared
Enum I_CmsSerialDateValue.WeekDay
- java.lang.Object
-
- java.lang.Enum<I_CmsSerialDateValue.WeekDay>
-
- org.opencms.acacia.shared.I_CmsSerialDateValue.WeekDay
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<I_CmsSerialDateValue.WeekDay>
- Enclosing interface:
- I_CmsSerialDateValue
public static enum I_CmsSerialDateValue.WeekDay extends java.lang.Enum<I_CmsSerialDateValue.WeekDay>
Enumeration representing the week days.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
valueOf(java.lang.String name)
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 Detail
-
SUNDAY
public static final I_CmsSerialDateValue.WeekDay SUNDAY
Sunday
-
MONDAY
public static final I_CmsSerialDateValue.WeekDay MONDAY
Monday
-
TUESDAY
public static final I_CmsSerialDateValue.WeekDay TUESDAY
Tuesday
-
WEDNESDAY
public static final I_CmsSerialDateValue.WeekDay WEDNESDAY
Wednesday
-
THURSDAY
public static final I_CmsSerialDateValue.WeekDay THURSDAY
Thursday
-
FRIDAY
public static final I_CmsSerialDateValue.WeekDay FRIDAY
Friday
-
SATURDAY
public static final I_CmsSerialDateValue.WeekDay SATURDAY
Saturday
-
-
Method Detail
-
values
public static I_CmsSerialDateValue.WeekDay[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (I_CmsSerialDateValue.WeekDay c : I_CmsSerialDateValue.WeekDay.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static I_CmsSerialDateValue.WeekDay valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromInt
public static I_CmsSerialDateValue.WeekDay fromInt(int i)
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
public int 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.
-
-