|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.holidays.HolidaySort
class HolidaySort
Sort by date holiday occurs in a specified year.
Defines an alternate sort order for HolInfo.
Constructor Summary | |
---|---|
HolidaySort(int year,
boolean shifted)
constructor sort holidays in order for a given year. |
Method Summary | |
---|---|
int |
compare(HolInfo a,
HolInfo b)
Sort by date holiday occurs in a specified year. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
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..Method Detail |
---|
public final int compare(HolInfo a, HolInfo b)
compare
in interface java.util.Comparator<HolInfo>
a
- first HolInfo to compareb
- second HolInfo to compare
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |