- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines date adjustment behavior for holiday observance when the calculated
date falls on a weekend day. Date roll behavior is a defined attribute of a
published holiday calendar.
This is a functional interface, supporting definition of date roll
behavior for a HolidayCalendar as a
lambda expression.
- Author:
- Dave Joyce
-
Method Summary
Modifier and TypeMethodDescriptiondefault DateRollReturns a composedDateRollthat first applies this roll, then appliesafter.rollToObservedDate(LocalDate dateToRoll) Roll the calculated date for the specified holiday in the given year to the nearest valid date.
-
Method Details
-
rollToObservedDate
Roll the calculated date for the specified holiday in the given year to the nearest valid date.- Parameters:
dateToRoll- calculated holiday date to be rolled- Returns:
- holiday date (adjusted for valid observance)
-
andThen
Returns a composedDateRollthat first applies this roll, then appliesafter.- Parameters:
after- the roll to apply after this one- Returns:
- composed date roll
-