Interface HolidayProviderIfc

    • Method Detail

      • isHoliday

        boolean isHoliday​(Locale locale,
                          Date date)
        Returns if the given day is a holiday in the given area.
        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

        boolean isWorkingDay​(Locale locale,
                             Date date)
        Returns true if the day is not a Sunday and not a holiday.
        Parameters:
        locale -
        date -
        Returns:
        true if the specified date is a working day
      • getHolidays

        Map<String,​String> getHolidays​(Locale locale,
                                             int year)
        Returns a list of holidays for the area and year.
        Parameters:
        locale -
        year -
        Returns:
        true if the specified date is a holiday