Module net.finmath.lib
Class BusinessdayCalendarExcludingGivenHolidays
java.lang.Object
net.finmath.time.businessdaycalendar.AbstractBusinessdayCalendar
net.finmath.time.businessdaycalendar.BusinessdayCalendarExcludingGivenHolidays
- All Implemented Interfaces:
Serializable,BusinessdayCalendar
- Direct Known Subclasses:
BusinessdayCalendarExcludingGivenSetOfHolidays,BusinessdayCalendarExcludingLONHolidays,BusinessdayCalendarExcludingNYCHolidays
An abstract base class for a business day calendar, where every day is a business day, except
weekends days provided by a
Set provided by the method getHolidays.- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.finmath.time.businessdaycalendar.BusinessdayCalendar
BusinessdayCalendar.DateOffsetUnit, BusinessdayCalendar.DateRollConvention -
Constructor Summary
ConstructorsConstructorDescriptionBusinessdayCalendarExcludingGivenHolidays(String name, BusinessdayCalendar baseCalendar, boolean isExcludeWeekends) -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanisBusinessday(LocalDate date)Test if a given date is a businessday.booleantoString()Methods inherited from class net.finmath.time.businessdaycalendar.AbstractBusinessdayCalendar
convertOffsetCodesToTimes, createDateFromDateAndOffsetCodes, getAdjustedDate, getAdjustedDate, getDateFromDateAndOffsetCode, getRolledDate
-
Constructor Details
-
BusinessdayCalendarExcludingGivenHolidays
public BusinessdayCalendarExcludingGivenHolidays(String name, BusinessdayCalendar baseCalendar, boolean isExcludeWeekends)
-
-
Method Details
-
getName
- Returns:
- A name of the calendar (e.g. to identify the calendar).
-
getBaseCalendar
- Returns:
- A base calendar, if any. May be null.
-
isExcludingWeekends
public boolean isExcludingWeekends()- Returns:
- If true, DayOfWeek.SATURDAY and DayOfWeek.SUNDAY are excluded (no-business days)
-
getHolidays
- Returns:
- A set of (additional) holidays.
-
isBusinessday
Description copied from interface:BusinessdayCalendarTest if a given date is a businessday.- Parameters:
date- The given date.- Returns:
- True, if the given date is a businessday, otherwise false.
-
toString
- Overrides:
toStringin classAbstractBusinessdayCalendar
-