Package de.focus_shift.impl
Class JapaneseHolidayManager
- java.lang.Object
-
- de.focus_shift.HolidayManager
-
- de.focus_shift.impl.DefaultHolidayManager
-
- de.focus_shift.impl.JapaneseHolidayManager
-
public class JapaneseHolidayManager extends DefaultHolidayManager
JapaneseHolidayManager class.
- Version:
- $Id: $
- Author:
- Sven
-
-
Field Summary
-
Fields inherited from class de.focus_shift.impl.DefaultHolidayManager
configuration
-
Fields inherited from class de.focus_shift.HolidayManager
calendarUtil
-
-
Constructor Summary
Constructors Constructor Description JapaneseHolidayManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Holiday>getHolidays(int year, String... args)Returns the holidays for the requested year and hierarchy structure.-
Methods inherited from class de.focus_shift.impl.DefaultHolidayManager
doInit, getCalendarHierarchy, getHolidays, logHierarchy, validateConfigurationHierarchy
-
Methods inherited from class de.focus_shift.HolidayManager
clearManagerCache, getConfigurationService, getInstance, getInstance, getInstance, getManagerParameter, getSupportedCalendarCodes, init, isHoliday, isHoliday, isHoliday, isHoliday, isManagerCachingEnabled, setConfigurationService, setManagerCachingEnabled
-
-
-
-
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:
getHolidaysin classDefaultHolidayManager- Parameters:
year- i.e. 2010args- 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
-
-