- java.lang.Object
-
- de.focus_shift.jollyday.core.util.CalendarUtil
-
public final class CalendarUtil extends Object
Utility class for date operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontains(Set<Holiday> holidays, LocalDate date)Shows if the requested date is contained in the Set of holidays.static booleancontains(Set<Holiday> holidays, LocalDate date, HolidayType holidayType)Shows if the requested date is contained in the Set of holidays.
-
-
-
Method Detail
-
contains
public static boolean contains(Set<Holiday> holidays, LocalDate date)
Shows if the requested date is contained in the Set of holidays. Calls #contains(holidays, date, null)- Parameters:
holidays- the holidays to search throughdate- the date to look for- Returns:
- the date is contained in the set of holidays
-
contains
public static boolean contains(Set<Holiday> holidays, LocalDate date, HolidayType holidayType)
Shows if the requested date is contained in the Set of holidays.- Parameters:
holidays- aSetobject.date- aLocalDateobject.holidayType- aHolidayTypeobject- Returns:
- contains this date
-
-