org.jfin.date.holiday.financialcalendarimpl
Class FinancialCalendarHolidayCalendar<T>
- java.lang.Object
-
- org.jfin.date.holiday.HolidayCalendar
-
- org.jfin.date.holiday.financialcalendarimpl.FinancialCalendarHolidayCalendar<T>
-
public class FinancialCalendarHolidayCalendar<T> extends HolidayCalendar
-
-
Constructor Summary
Constructors Constructor and Description FinancialCalendarHolidayCalendar(HolidayFile holidayFile, java.lang.String locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description HolidayFilegetHolidayFile()java.lang.StringgetLocale()booleanisHoliday(java.util.Calendar d)Returns true if the Calendar falls on a holiday or a weekend, otherwise false.booleanisWeekend(java.util.Calendar d)Returns true if the Calendar falls on a weekend, otherwise false.voidsetHolidayFile(HolidayFile holidayFile)voidsetLocale(java.lang.String locale)-
Methods inherited from class org.jfin.date.holiday.HolidayCalendar
adjust, adjust, adjust, advance, advanceBusinessDays, getBusinessDaysBetween, getDaysInMonth, isLastDayOfMonth, setToEndOfMonth
-
-
-
-
Constructor Detail
-
FinancialCalendarHolidayCalendar
public FinancialCalendarHolidayCalendar(HolidayFile holidayFile, java.lang.String locale)
- Parameters:
holidayFile-locale-
-
-
Method Detail
-
isWeekend
public boolean isWeekend(java.util.Calendar d)
Description copied from class:HolidayCalendarReturns true if the Calendar falls on a weekend, otherwise false.- Specified by:
isWeekendin classHolidayCalendar- Parameters:
d- The Calendar to check- Returns:
- true if the Calendar is a weekend, otherwise false
-
isHoliday
public boolean isHoliday(java.util.Calendar d)
Description copied from class:HolidayCalendarReturns true if the Calendar falls on a holiday or a weekend, otherwise false.- Specified by:
isHolidayin classHolidayCalendar- Parameters:
d- The Calendar to check- Returns:
- true if the Calendar is a holiday, otherwise false
-
getHolidayFile
public HolidayFile getHolidayFile()
- Returns:
- Returns the holidayFile.
-
setHolidayFile
public void setHolidayFile(HolidayFile holidayFile)
- Parameters:
holidayFile- The holidayFile to set.
-
getLocale
public java.lang.String getLocale()
- Returns:
- Returns the locale.
-
setLocale
public void setLocale(java.lang.String locale)
- Parameters:
locale- The locale to set.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG