Java LocalDate Calculate isBankHoliday(List bankHolidays, LocalDate date)

Here you can find the source of isBankHoliday(List bankHolidays, LocalDate date)

Description

is Bank Holiday

License

Creative Commons License

Declaration

public static boolean isBankHoliday(List<LocalDate> bankHolidays, LocalDate date) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import java.time.LocalDate;

import java.util.List;

public class Main {

    public static boolean isBankHoliday(List<LocalDate> bankHolidays, LocalDate date) {
        return (bankHolidays != null) && bankHolidays.contains(date);
    }//from  www  . ja va2s .  c  om
}

Related

  1. getTodayAsLocalDate()
  2. getWeekOfTheYear(final LocalDate dateOfYear)
  3. getYearMonth(LocalDate localDate)
  4. isActual(LocalDate before, LocalDate after)
  5. isAnyLocalDate(Object obj)
  6. isDayOfWeek(LocalDate d, DayOfWeek dow)
  7. isEqual(LocalDate date1, LocalDate date2)
  8. isInPeriod(LocalDate subject, LocalDate start, LocalDate end)
  9. isLess(@Nonnull final LocalDate aDate1, @Nonnull final LocalDate aDate2)