org.jfin.date.holiday.defaultimpl
Class WeekendHolidayCalendar<T>
- java.lang.Object
-
- org.jfin.date.holiday.HolidayCalendar
-
- org.jfin.date.holiday.defaultimpl.WeekendHolidayCalendar<T>
-
public class WeekendHolidayCalendar<T> extends HolidayCalendar
-
-
Constructor Summary
Constructors Constructor and Description WeekendHolidayCalendar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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.-
Methods inherited from class org.jfin.date.holiday.HolidayCalendar
adjust, adjust, adjust, advance, advanceBusinessDays, getBusinessDaysBetween, getDaysInMonth, isLastDayOfMonth, setToEndOfMonth
-
-
-
-
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG