Package com.walkfares.calendar.holiday
Class Penultimate
java.lang.Object
com.walkfares.calendar.holiday.BaseHolidayRule
com.walkfares.calendar.holiday.Penultimate
- All Implemented Interfaces:
HolidayRule
public class Penultimate extends BaseHolidayRule
-
Constructor Summary
Constructors Constructor Description Penultimate(String name, DayOfWeek day, int month) -
Method Summary
Modifier and Type Method Description DayOfWeekgetDay()List<Holiday>getHolidaysForYear(int year)intgetMonth()HolidayRuleOptionsgetOptions()StringgetRule()booleanisHoliday(UTCDate date)PenultimatewithOptions(HolidayRuleOptions options)Methods inherited from class com.walkfares.calendar.holiday.BaseHolidayRule
equals, getCode, getName, hashCode
-
Constructor Details
-
Method Details
-
withOptions
- Overrides:
withOptionsin classBaseHolidayRule
-
getHolidaysForYear
-
isHoliday
-
getRule
-
getDay
-
getMonth
public int getMonth() -
getOptions
- Overrides:
getOptionsin classBaseHolidayRule
-