public class WorkingDaysToDaysConverter extends Object
| Constructor and Description |
|---|
WorkingDaysToDaysConverter(boolean germanHolidaysEnabled,
boolean corpusChristiEnabled) |
WorkingDaysToDaysConverter(boolean germanHolidaysEnabled,
boolean corpusChristiEnabled,
Collection<CustomHoliday> customHolidays)
Creates a WorkingDasToDaysConverter.
|
| Modifier and Type | Method and Description |
|---|---|
Instant |
addWorkingDaysToInstant(Instant instant,
Duration workingDays) |
boolean |
hasWorkingDaysInBetween(Instant left,
Instant right) |
boolean |
isGermanHoliday(LocalDate date) |
boolean |
isHoliday(LocalDate date) |
boolean |
isWeekend(LocalDate dateToCheck) |
boolean |
isWorkingDay(Instant referenceDate) |
Instant |
subtractWorkingDaysFromInstant(Instant instant,
Duration workingDays) |
String |
toString() |
public WorkingDaysToDaysConverter(boolean germanHolidaysEnabled,
boolean corpusChristiEnabled)
public WorkingDaysToDaysConverter(boolean germanHolidaysEnabled,
boolean corpusChristiEnabled,
Collection<CustomHoliday> customHolidays)
germanHolidaysEnabled - identifier for German holidayscorpusChristiEnabled - identifier for Corpus Christi - dependent from
germanHolidaysEnabled and thus only validated if German holidays are enabled.customHolidays - additional custom holidayspublic Instant addWorkingDaysToInstant(Instant instant, Duration workingDays)
public Instant subtractWorkingDaysFromInstant(Instant instant, Duration workingDays)
public boolean isWorkingDay(Instant referenceDate)
public boolean isWeekend(LocalDate dateToCheck)
public boolean isHoliday(LocalDate date)
public boolean isGermanHoliday(LocalDate date)
Copyright © 2020. All rights reserved.