class HolidaySort extends java.lang.Object implements java.util.Comparator<HolInfo>
Constructor and Description |
---|
HolidaySort(int year,
boolean shifted)
constructor sort holidays in order for a given year.
|
HolidaySort(int year, boolean shifted)
year
- which year of interest. Holidays change order in different years.shifted
- true if want to sort by shifted-date you get off work..public final int compare(HolInfo a, HolInfo b)
compare
in interface java.util.Comparator<HolInfo>
a
- first HolInfo to compareb
- second HolInfo to compare