Java library for determining whether a given day is a bankCalendar holiday
LocalDate newYears = LocalDate.of(2022, 1, 1);
Bank bankCalendar = USBankFactory.createBankCalendar();
boolean isHoliday = bankCalendar.isHoliday(newYears);
// This bankCalendar comes packaged with the Federal Reserve Bank holidays
Bank bankCalendar = USBankFactory.createBankCalendar();
The Holiday interface can be used to create a new Holiday
class NewHoliday implements Holiday {
@Override
public boolean isHoliday(LocalDate day) {
// Your logic for determining if
// the given day is a holiday goes here
// ...
}
}
List<Holiday> holidays = List.of(aHoliday, anotherHoliday);
Bank bankCalendar = new Bank(holidays);
- Christmas
- Columbus Day
- Independence Day
- Juneteenth
- Labor Day
- Martin Luther King Day
- Memorial Day
- New Years Day
- Presidents Day
- Thanksgiving
- Veterans Day
Please feel free to submit a pull request with new holidays and banks