java.lang.Object
de.focus_shift.jollyday.core.util.CalendarUtil
Utility class for date operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanShows if the requested date is contained in the Set of holidays.static booleancontains(@NonNull Set<Holiday> holidays, @NonNull LocalDate date, @Nullable HolidayType holidayType) Shows if the requested date is contained in the Set of holidays.
-
Method Details
-
contains
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(@NonNull Set<Holiday> holidays, @NonNull LocalDate date, @Nullable 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
-