Class HolidaySchedule


  • public class HolidaySchedule
    extends Object
    The WorkingDaysToDaysConverter provides a method to convert an age in working days into an age in days.
    • Constructor Detail

      • HolidaySchedule

        public HolidaySchedule​(boolean germanHolidaysEnabled,
                               boolean corpusChristiEnabled)
      • HolidaySchedule

        public HolidaySchedule​(boolean germanHolidaysEnabled,
                               boolean corpusChristiEnabled,
                               Collection<CustomHoliday> customHolidays)
        Creates a WorkingDasToDaysConverter.
        Parameters:
        germanHolidaysEnabled - identifier for German holidays
        corpusChristiEnabled - identifier for Corpus Christi - dependent from germanHolidaysEnabled and thus only validated if German holidays are enabled.
        customHolidays - additional custom holidays
    • Method Detail

      • isHoliday

        public boolean isHoliday​(LocalDate date)
      • isGermanHoliday

        public boolean isGermanHoliday​(LocalDate date)