Class HolidayProviderImpl

    • Constructor Detail

      • HolidayProviderImpl

        public HolidayProviderImpl()
    • Method Detail

      • isHoliday

        public boolean isHoliday​(Locale locale,
                                 Date date)
        Description copied from interface: HolidayProviderIfc
        Returns if the given day is a holiday in the given area.
        Specified by:
        isHoliday in interface HolidayProviderIfc
        Parameters:
        locale - The requested area or null for the default area.
        date - The day to check
        Returns:
        true if the day (ignoring time) is a holiday.
      • isWorkingDay

        public boolean isWorkingDay​(Locale locale,
                                    Date date)
        Description copied from interface: HolidayProviderIfc
        Returns true if the day is not a Sunday and not a holiday.
        Specified by:
        isWorkingDay in interface HolidayProviderIfc
        Returns:
        true if the specified date is a working day
      • fillDefaultHolydays

        protected void fillDefaultHolydays​(Locale locale,
                                           int year,
                                           Map<String,​String> map)