Class JapaneseHolidayManager


  • public class JapaneseHolidayManager
    extends DefaultHolidayManager

    JapaneseHolidayManager class.

    Version:
    $Id: $
    Author:
    Sven
    • Constructor Detail

      • JapaneseHolidayManager

        public JapaneseHolidayManager()
    • Method Detail

      • getHolidays

        public Set<Holiday> getHolidays​(int year,
                                        String... args)
        Returns the holidays for the requested year and hierarchy structure.

        Calls Set<LocalDate> getHolidays(int year, Configuration c, String... args) with the configuration from initialization.

        Implements the rule which requests if two holidays have one non holiday between each other than this day is also a holiday.

        Overrides:
        getHolidays in class DefaultHolidayManager
        Parameters:
        year - i.e. 2010
        args - i.e. args = {'ny'}. returns US/New York holidays. No args -> holidays common to whole country
        Returns:
        a set of holidays for the requested year