Class HolidaySchedule

java.lang.Object
pro.taskana.common.internal.workingtime.HolidaySchedule

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

    • 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 Details

    • isHoliday

      public boolean isHoliday(LocalDate date)
    • isGermanHoliday

      public boolean isGermanHoliday(LocalDate date)
    • toString

      public String toString()
      Overrides:
      toString in class Object