Package fr.marcwrobel.jbanking.calendar
Class BridgedHoliday
java.lang.Object
fr.marcwrobel.jbanking.calendar.BridgedHoliday
- All Implemented Interfaces:
Holiday
A
Holiday based on two other holidays that adds a holiday when the previous and next days are holidays.
This class is useful for modeling holidays like the bridged japanese holidays.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionBridgedHoliday(Holiday first, Holiday second) Create a new holiday using the given first and second holidays. -
Method Summary
-
Constructor Details
-
BridgedHoliday
Create a new holiday using the given first and second holidays.- Parameters:
first- the first non-null holidaysecond- the second non-null holiday- Throws:
NullPointerException- if one of the given holidays isnull
-
-
Method Details