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())
            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 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.
        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 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.
        Returns:
        the number corresponding to the weekday.