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 DayOfWeek
getDay()
List<Holiday>
getHolidaysForYear(int year)
int
getMonth()
HolidayRuleOptions
getOptions()
String
getRule()
boolean
isHoliday(UTCDate date)
Penultimate
withOptions(HolidayRuleOptions options)
Methods inherited from class com.walkfares.calendar.holiday.BaseHolidayRule
equals, getCode, getName, hashCode
-
Constructor Details
-
Method Details
-
withOptions
- Overrides:
withOptions
in classBaseHolidayRule
-
getHolidaysForYear
-
isHoliday
-
getRule
-
getDay
-
getMonth
public int getMonth() -
getOptions
- Overrides:
getOptions
in classBaseHolidayRule
-