| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final Set | |
| public static final WorkdayCalculator | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Set | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: number of holidays that occur in workdays, between start and end dates.start date. start, double end date. end, double[] an array of holidays. holidays)Calculates how many holidays in a list are workdays, considering an interval of dates. |
| public int | Returns: number of workdays between start and end dates, including both dates.start date. start, double end date. end, double[] an array of holidays. holidays)Calculate how many workdays are there between a start and an end date, as excel representations, considering a range of holidays. |
| public Date | Returns: date past x workdays.start date. start, int number of workdays to be past from starting date. workdays, double[] an array of holidays. holidays)Calculate the workday past x workdays from a starting date, considering a range of holidays. |
| public Date | Returns: date past x workdays.start date. start, int number of workdays to be past from starting date. workdays, int weekend parameter (see https://support.microsoft.com/en-us/office/workday-intl-function-a378391c-9ba7-4678-8a39-39611a9bf81d) weekendType, double[] an array of holidays. holidays)Calculate the workday past x workdays from a starting date, considering a range of holidays. |
| public Set | |
| protected boolean | Returns: true if date is a holiday, false otherwise.a given date. aDate, double[] an array of holidays. holidays)
|
| protected boolean | Returns: true if aDate is between start and end dates, false otherwise.start date. start, double end date. end, double a date to be analyzed. aDate)
|
| protected boolean | |
| private boolean | |
| private boolean | |
| protected int | Returns: how many days of week past in this interval.start date. start, double end date. end, int a day of week as represented by dayOfWeek)Calendar constants.Calculates how many days of week past between a start and an end date. |
| friSatWeekend | back to summary |
|---|---|
| private static final Set<Integer> friSatWeekend | |
| friWeekend | back to summary |
|---|---|
| private static final Set<Integer> friWeekend | |
| instance | back to summary |
|---|---|
| public static final WorkdayCalculator instance | |
| monTuesWeekend | back to summary |
|---|---|
| private static final Set<Integer> monTuesWeekend | |
| monWeekend | back to summary |
|---|---|
| private static final Set<Integer> monWeekend | |
| satWeekend | back to summary |
|---|---|
| private static final Set<Integer> satWeekend | |
| standardWeekend | back to summary |
|---|---|
| private static final Set<Integer> standardWeekend | |
| sunMonWeekend | back to summary |
|---|---|
| private static final Set<Integer> sunMonWeekend | |
| sunWeekend | back to summary |
|---|---|
| private static final Set<Integer> sunWeekend | |
| thursFriWeekend | back to summary |
|---|---|
| private static final Set<Integer> thursFriWeekend | |
| thursWeekend | back to summary |
|---|---|
| private static final Set<Integer> thursWeekend | |
| tuesWedsWeekend | back to summary |
|---|---|
| private static final Set<Integer> tuesWedsWeekend | |
| tuesWeekend | back to summary |
|---|---|
| private static final Set<Integer> tuesWeekend | |
| wedsThursWeekend | back to summary |
|---|---|
| private static final Set<Integer> wedsThursWeekend | |
| wedsWeekend | back to summary |
|---|---|
| private static final Set<Integer> wedsWeekend | |
| weekendTypeMap | back to summary |
|---|---|
| private static final Map<Integer, Set<Integer>> weekendTypeMap | |
| WorkdayCalculator | back to summary |
|---|---|
| private WorkdayCalculator() Constructor. | |
| calculateNonWeekendHolidays | back to summary |
|---|---|
| protected int calculateNonWeekendHolidays(double start, double end, double[] holidays) Calculates how many holidays in a list are workdays, considering an interval of dates.
| |
| calculateWorkdays | back to summary |
|---|---|
| public int calculateWorkdays(double start, double end, double[] holidays) Calculate how many workdays are there between a start and an end date, as excel representations, considering a range of holidays.
| |
| calculateWorkdays | back to summary |
|---|---|
| public Date calculateWorkdays(double start, int workdays, double[] holidays) Calculate the workday past x workdays from a starting date, considering a range of holidays. Uses Sat/Sun weekend.
| |
| calculateWorkdays | back to summary |
|---|---|
| public Date calculateWorkdays(double start, int workdays, int weekendType, double[] holidays) Calculate the workday past x workdays from a starting date, considering a range of holidays.
| |
| getValidWeekendTypes | back to summary |
|---|---|
| public Set | |
| isHoliday | back to summary |
|---|---|
protected boolean isHoliday(double aDate, double[] holidays)
| |
| isInARange | back to summary |
|---|---|
protected boolean isInARange(double start, double end, double aDate)
| |
| isWeekend | back to summary |
|---|---|
protected boolean isWeekend(double aDate)
| |
| isWeekend | back to summary |
|---|---|
| private boolean isWeekend(Calendar date) | |
| isWeekend | back to summary |
|---|---|
| private boolean isWeekend(Calendar date, Set<Integer> weekendDays) | |
| pastDaysOfWeek | back to summary |
|---|---|
| protected int pastDaysOfWeek(double start, double end, int dayOfWeek) Calculates how many days of week past between a start and an end date.
| |