Package de.mhus.lib.core.base.service
Interface HolidayProviderIfc
-
- All Known Implementing Classes:
HolidayProviderImpl
public interface HolidayProviderIfc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>getHolidays(Locale locale, int year)Returns a list of holidays for the area and year.booleanisHoliday(Locale locale, Date date)Returns if the given day is a holiday in the given area.booleanisWorkingDay(Locale locale, Date date)Returns true if the day is not a Sunday and not a holiday.
-
-
-
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
-
-