Module net.finmath.lib
Class BusinessdayCalendarExcludingWeekends
java.lang.Object
net.finmath.time.businessdaycalendar.AbstractBusinessdayCalendar
net.finmath.time.businessdaycalendar.BusinessdayCalendarExcludingWeekends
- All Implemented Interfaces:
Serializable
,BusinessdayCalendar
A business day calendar, where every day is a business day, expect SATURDAY and SUNDAY.
- 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
ConstructorsConstructorDescriptionCreate business day calendar.BusinessdayCalendarExcludingWeekends(BusinessdayCalendar baseCalendar)
Create business day calendar using a given business day calendar as basis. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isBusinessday(LocalDate date)
Test if a given date is a businessday.toString()
Methods inherited from class net.finmath.time.businessdaycalendar.AbstractBusinessdayCalendar
convertOffsetCodesToTimes, createDateFromDateAndOffsetCodes, getAdjustedDate, getAdjustedDate, getDateFromDateAndOffsetCode, getRolledDate
-
Constructor Details
-
BusinessdayCalendarExcludingWeekends
public BusinessdayCalendarExcludingWeekends()Create business day calendar. -
BusinessdayCalendarExcludingWeekends
Create business day calendar using a given business day calendar as basis.- Parameters:
baseCalendar
- Calendar of business days.
-
-
Method Details
-
isBusinessday
Description copied from interface:BusinessdayCalendar
Test 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:
toString
in classAbstractBusinessdayCalendar
-