Package fr.marcwrobel.jbanking.calendar
Interface Holiday
-
- All Known Implementing Classes:
BridgedHoliday,DayOfWeekHoliday,DayOfWeekInMonthHoliday,FixedHoliday,MonthDayHoliday,MovedHoliday,RelativeHoliday,ShiftedHoliday,SuppressedHoliday,WesternEaster,YearRangeHoliday
public interface HolidayBank holidays are holidays when banks, and many other businesses, are closed for the day. This interface is representing a public holiday.Subclasses of this interface are expected to be thread-safe and immutable.
- Since:
- 2.1.0
- Author:
- Marc Wrobel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(LocalDate date)Check whether the given date is an occurrence of this holiday.
-
-
-
Method Detail
-
check
boolean check(LocalDate date)
Check whether the given date is an occurrence of this holiday.- Parameters:
date- the date to check.- Returns:
trueif the given date is an occurrence of this holiday,falseotherwise.- Throws:
NullPointerException- if the given date isnull.
-
-