-
- All Known Subinterfaces:
ChristianHoliday,EthiopianOrthodoxHoliday,Fixed,FixedWeekdayBetweenFixed,FixedWeekdayInMonth,FixedWeekdayRelativeToFixed,IslamicHoliday,RelativeToEasterSunday,RelativeToFixed,RelativeToWeekdayInMonth
public interface LimitedProvides the functionality to limit the years a holiday will occur. By default, a holiday will occur on every year it is requested until this interface will be used and valid from or valid to is set, then the holiday will only occur in this year's. If the cycle is set, a holiday will only occur in the years represented by the cycle.Example: if a holiday is only valid from 1900 until 1910 and a cycle from five years is configured, then the holiday will occur in the years:
- 1900
- 1905
- 1910
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLimited.YearCycle
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Limited.YearCyclecycle()Describes the cycle a holiday is valid in between the years given bei from and to.YearvalidFrom()Describes the first year a holiday is valid (inclusive)YearvalidTo()Describes the last year a holiday is valid (inclusive)
-
-
-
Method Detail
-
validFrom
Year validFrom()
Describes the first year a holiday is valid (inclusive)- Returns:
- the first valid year of a holiday
-
validTo
Year validTo()
Describes the last year a holiday is valid (inclusive)- Returns:
- the last valid year of a holiday
-
cycle
Limited.YearCycle cycle()
Describes the cycle a holiday is valid in between the years given bei from and to.- Returns:
- the cycle to limit a holiday between from and to
-
-