java.lang.Object
org.holiday.calendar.observance.uk.UKDateRolls
Factory providing
DateRoll strategies for United Kingdom holiday calendars.- Author:
- Dave Joyce
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateRollfixedHolidayRoll(Holiday newYearsDay, Holiday christmasDay, Holiday boxingDay) Returns the standard UK date roll strategy for New Year's Day, Christmas Day, and Boxing Day.
-
Method Details
-
fixedHolidayRoll
public static DateRoll fixedHolidayRoll(Holiday newYearsDay, Holiday christmasDay, Holiday boxingDay) Returns the standard UK date roll strategy for New Year's Day, Christmas Day, and Boxing Day.- Christmas Day / Boxing Day on Saturday or Sunday: both substitute days are observed on the following Monday and Tuesday (+2 days).
- New Year's Day on Saturday: observed on the following Monday (+2 days).
- New Year's Day on Sunday: observed on the following Monday (+1 day).
- Parameters:
newYearsDay- the New Year's Day holidaychristmasDay- the Christmas Day holidayboxingDay- the Boxing Day holiday- Returns:
- date roll strategy for these holidays
-