org.jfin.date.holiday.defaultimpl
Class HolidayCalendarFactoryImpl
- java.lang.Object
-
- org.jfin.date.holiday.HolidayCalendarFactory
-
- org.jfin.date.holiday.defaultimpl.HolidayCalendarFactoryImpl
-
public class HolidayCalendarFactoryImpl extends HolidayCalendarFactory
Default implementation of the HolidayCalendarFactory. Only provides for one city identifier "WE", a calendar representing a list of weekends.
-
-
Field Summary
-
Fields inherited from class org.jfin.date.holiday.HolidayCalendarFactory
defaultHolidayCalendarFactoryClassName, defaultHolidayCalendarFactoryClassNameParameter
-
-
Constructor Summary
Constructors Constructor and Description HolidayCalendarFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getAvailableLocales()HolidayCalendargetHolidayCalendar(java.lang.String cityIdentifier)Get the HolidayCalendar that represents the locale.<T extends Period>
HolidayCalendar<T>getHolidayCalendar(java.lang.String cityIdentifier, java.lang.Class<T> c)Get the HolidayCalendar that represents the locales provided as an array of Strings.-
Methods inherited from class org.jfin.date.holiday.HolidayCalendarFactory
getHolidayCalendar, getHolidayCalendar, newInstance, newInstance
-
-
-
-
Method Detail
-
getHolidayCalendar
public HolidayCalendar getHolidayCalendar(java.lang.String cityIdentifier) throws HolidayCalendarException
Description copied from class:HolidayCalendarFactoryGet the HolidayCalendar that represents the locale.
- Specified by:
getHolidayCalendarin classHolidayCalendarFactory- Returns:
- The HolidayCalendar for the given Locale
- Throws:
HolidayCalendarException
-
getHolidayCalendar
public <T extends Period> HolidayCalendar<T> getHolidayCalendar(java.lang.String cityIdentifier, java.lang.Class<T> c)
Description copied from class:HolidayCalendarFactoryGet the HolidayCalendar that represents the locales provided as an array of Strings.
- Specified by:
getHolidayCalendarin classHolidayCalendarFactory- Returns:
- The holiday calendar
-
getAvailableLocales
public java.lang.String[] getAvailableLocales()
- Specified by:
getAvailableLocalesin classHolidayCalendarFactory
-
-
DataMelt 3.0 © DataMelt by jWork.ORG