Enum I_CmsSerialDateValue.WeekDay

    • 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())
        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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.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 in Calendar.
        i - the number of the weekday (starting with 1 for Sunday)
        the I_CmsSerialDateValue.WeekDay that corresponds to the given number.
      • toInt

        public int toInt()
        Object Converts the I_CmsSerialDateValue.WeekDay to it's corresponding number, i.e. it's ordinal plus 1. The numbers correspond to the numbers for weekdays used by Calendar.
        the number corresponding to the weekday.