Package de.mhus.lib.core.calendar
Class Holidays
- java.lang.Object
-
- de.mhus.lib.core.calendar.Holidays
-
- Direct Known Subclasses:
GermanHolidays
public abstract class Holidays extends Object
-
-
Constructor Summary
Constructors Constructor Description Holidays()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static int[]getEasterSunday(int year)Return a array with three elements 0: day of month, start at 1 1: month, start with 1 2: year, as providedstatic CalendargetEasterSundayDate(int year)abstract Map<Date,String>getHolidays(MNls nls, int year, String regionHint)Return a list of national holidays for the year.static HolidaysgetHolidaysForLocale(Locale locale)
-
-
-
Method Detail
-
getEasterSundayDate
public static Calendar getEasterSundayDate(int year)
-
getEasterSunday
public static int[] getEasterSunday(int year)
Return a array with three elements 0: day of month, start at 1 1: month, start with 1 2: year, as provided- Parameters:
year-- Returns:
- The date as array
-
getHolidays
public abstract Map<Date,String> getHolidays(MNls nls, int year, String regionHint)
Return a list of national holidays for the year.- Parameters:
nls- The nls or null for defaultyear- The year to provide holidaysregionHint- Region hint or null- Returns:
- List of holidays for the year, key, name of the holiday, value the date in the year.
-
-