Class Holidays

    • Constructor Detail

      • Holidays

        public Holidays()
    • 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 default
        year - The year to provide holidays
        regionHint - Region hint or null
        Returns:
        List of holidays for the year, key, name of the holiday, value the date in the year.
      • getHolidaysForLocale

        public static Holidays getHolidaysForLocale​(Locale locale)