Package fr.marcwrobel.jbanking.calendar
Class FixedHoliday
java.lang.Object
fr.marcwrobel.jbanking.calendar.FixedHoliday
- All Implemented Interfaces:
Holiday
A
Holiday occurring at given dates.
This class is useful for modeling exceptional holidays like the golden jubilee in the United Kingdom.
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionFixedHoliday(LocalDate... dates) Create a new holiday using the given dates.FixedHoliday(Collection<LocalDate> dates) Create a new holiday using the given dates. -
Method Summary
-
Constructor Details
-
FixedHoliday
Create a new holiday using the given dates.- Parameters:
dates- a collection ofLocalDates- Throws:
NullPointerException- if the given collection isnull
-
FixedHoliday
Create a new holiday using the given dates.- Parameters:
dates- a collection ofLocalDates- Throws:
NullPointerException- if the given collection isnull
-
-
Method Details
-
check
Description copied from interface:HolidayCheck whether the given date is an occurrence of this holiday. -
equals
-
hashCode
public int hashCode() -
toString
-