チェックは日祝日手動
private static final List<LocalDate> HOLIDAYS = Arrays.asList(new LocalDate[]{
new LocalDate(2000, DateTimeConstants.JANUARY, 1),
new LocalDate(2000, DateTimeConstants.JANUARY, 7),
new LocalDate(2000, DateTimeConstants.JANUARY, 14),
new LocalDate(2000, DateTimeConstants.JANUARY, 28),
/* ... */
new LocalDate(2000, DateTimeConstants.DECEMBER, 25),
});
public static boolean isHoliday(LocalDate checkedDate)
{
for (final LocalDate date : HOLIDAYS)
{
if(date.getMonthOfYear() == checkedDate.getMonthOfYear()
&& date.getDayOfMonth() == checkedDate.getDayOfMonth())
{
return true;
}
}
return false;
}