public final class HumanRightsDay extends HolInfo
Constructor and Description |
---|
HumanRightsDay() |
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.
|
static void |
main(java.lang.String[] args)
Test driver
|
int |
when(int year,
boolean shift,
int base)
Always on Dec 10.
|
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)
when
in class HolInfo
year
- (-ve means BC, +ve means AD, 0 not permitted.)shift
- true if want date of holiday shifted to nearest weekday.base
- PROCLAIMED=based on date holiday was officially proclaimed CELEBRATED=based on date holiday was
first celebratedpublic static void main(java.lang.String[] args)
args
- not used