Enum IsoWeekDay

    • Enum Constant Detail

      • SUNDAY

        public static final IsoWeekDay SUNDAY
        The day of the week is SUNDAY.
      • MONDAY

        public static final IsoWeekDay MONDAY
        The day of the week is MONDAY.
      • TUESDAY

        public static final IsoWeekDay TUESDAY
        The day of the week is TUESDAY.
      • WEDNESDAY

        public static final IsoWeekDay WEDNESDAY
        The day of the week is WEDNESDAY.
      • THURSDAY

        public static final IsoWeekDay THURSDAY
        The day of the week is THURSDAY.
      • FRIDAY

        public static final IsoWeekDay FRIDAY
        The day of the week is FRIDAY.
      • SATURDAY

        public static final IsoWeekDay SATURDAY
        The day of the week is SATURDAY.
    • Method Detail

      • values

        public static IsoWeekDay[] 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 (IsoWeekDay c : IsoWeekDay.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IsoWeekDay valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public int value()
        Returns the ISO day of the week.
        Returns:
        the ISO day of the week
      • getIsoWeekDayByValue

        public static IsoWeekDay getIsoWeekDayByValue​(int value)
        Returns a ISO week day item by the passed value.
        Parameters:
        value - ISO day of the week with 0 being Sunday and 6 being Saturday
        Returns:
        a ISO week day