Package net.hebrewcalendar.impl.holiday
Class MonthDaySpecialDay<C extends ICalendar<C>>
- java.lang.Object
-
- net.hebrewcalendar.impl.holiday.AbstractRecurringSpecialDay<C>
-
- net.hebrewcalendar.impl.holiday.MonthDaySpecialDay<C>
-
- All Implemented Interfaces:
SpecialDay<C>
public class MonthDaySpecialDay<C extends ICalendar<C>> extends AbstractRecurringSpecialDay<C>
Represents a holiday that occurs yearly on the same date. It is initialized with month and day.
-
-
Constructor Summary
Constructors Constructor Description MonthDaySpecialDay(C calendar, String name, int month, int day)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDayOfMonth()intgetMonth()booleanmatches(IDate<C> date)StringtoString()-
Methods inherited from class net.hebrewcalendar.impl.holiday.AbstractRecurringSpecialDay
getCalendar, getName, getNextOccurrence, getPrevOccurrence
-
-
-
-
Constructor Detail
-
MonthDaySpecialDay
public MonthDaySpecialDay(C calendar, String name, int month, int day)
- Parameters:
month- month. This can be negative to indicate the count of months from end of year, e.g. month -1 is the last month of the year. This can be useful for Hebrew year, which has variable number of months, e.g. Purim is always in the last month before Nisan, which can be either ADAR or ADAR_2. 0 can be used to indicate ANY month, e.g. month=0, day=1 will match first day of every month.day- day of month. This can be negative to indicate the count of days from end of month, e.g. -1 will indicate the LAST day of month. day=0 can be used to match ANY day of the month, e.g. month=4, day = 0 will match the entire April in Gregorian calendar.
-
-