java.lang.Object
org.holiday.calendar.observance.uk.UKDateRolls

public final class UKDateRolls extends Object
Factory providing DateRoll strategies for United Kingdom holiday calendars.
Author:
Dave Joyce
  • 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 holiday
      christmasDay - the Christmas Day holiday
      boxingDay - the Boxing Day holiday
      Returns:
      date roll strategy for these holidays