Package adams.core

Enum BusinessDays

    • Enum Constant Detail

      • MONDAY_TO_FRIDAY

        public static final BusinessDays MONDAY_TO_FRIDAY
      • MONDAY_TO_SATURDAY

        public static final BusinessDays MONDAY_TO_SATURDAY
      • SATURDAY_TO_THURSDAY

        public static final BusinessDays SATURDAY_TO_THURSDAY
      • SUNDAY_TO_THURSDAY

        public static final BusinessDays SUNDAY_TO_THURSDAY
      • SUNDAY_TO_FRIDAY

        public static final BusinessDays SUNDAY_TO_FRIDAY
    • Method Detail

      • values

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

        public static BusinessDays 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
      • isBusinessDay

        public boolean isBusinessDay​(Date d)
        Checks whether the provided date represents a business day for this enum.
        Parameters:
        d - the date to check
        Returns:
        true if a business day