public final class NewYearsDay extends HolInfo
Constructor and Description |
---|
NewYearsDay() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthority()
authority who provided the information about the holiday.
|
int |
getFirstYear(int base)
Get year holiday first proclaimed or first celebrated.
|
java.lang.String |
getName()
Get name of holiday e.g.
|
java.lang.String |
getRule()
Get rule in English for how the holiday is calculated.
|
int |
when(int year,
boolean shift,
int base)
When was this holiday in a given year?
|
isYearValid, shiftSatToFriSunToMon, when, when
public java.lang.String getAuthority()
HolInfo
getAuthority
in class HolInfo
public int getFirstYear(int base)
HolInfo
getFirstYear
in class HolInfo
base
- PROCLAIMED=based on date holiday was officially proclaimed. CELEBRATED=based on date holiday was
first celebrated.public java.lang.String getName()
HolInfo
public java.lang.String getRule()
HolInfo
public int when(int year, boolean shift, int base)
HolInfo
when
in class HolInfo
year
- (-ve means BC, +ve means AD, 0 not permitted.)shift
- ACTUAL = false if you want the actual date of the holiday. SHIFTED = true if you want the date taken
off work, usually the nearest weekday.base
- PROCLAIMED=based on date holiday was officially proclaimed CELEBRATED=based on date holiday was
first celebrated