|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hattrickorganizer.tools.HTCalendar
public class HTCalendar
HTCalendar is a class for calculating the Hattrick season and week number for a
given date. Dates before October 15, 2000 can not be calculated using this calendar and will
return both 0 for season and week.
Note:
October 15, 2000 was the start of Swedish season 11 and the first season for the first
non-Swedish leagues that were created, namely:
| Constructor Summary | |
|---|---|
HTCalendar()
|
|
| Method Summary | |
|---|---|
int |
getHTSeason()
Gets the calculated Hattrick season or 0 if the date is before the league's first season. |
int |
getHTWeek()
Gets the calculated Hattrick week. |
java.util.Date |
getTime()
Gets the date for which the Hattrick season and week is calculated. |
void |
initialize(java.util.Calendar marker)
Initializes the HTCalendar for flip-over point. |
void |
setSeasonCorrection(int correction)
Sets the season correction factor for the local league. |
void |
setTime(java.util.Calendar cal)
Sets the date for which to calculate the Hattrick season and week. |
void |
setTime(java.util.Date time)
Sets the date for which to calculate the Hattrick season and week. |
void |
setTime(java.sql.Timestamp time)
Sets the date for which to calculate the Hattrick season and week. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTCalendar()
| Method Detail |
|---|
public final int getHTSeason()
getHTSeason in interface IHTCalendarpublic final int getHTWeek()
getHTWeek in interface IHTCalendarpublic final void setTime(java.sql.Timestamp time)
setTime in interface IHTCalendartime - Date for which to calculate the Hattrick season and week.public final void setTime(java.util.Date time)
setTime in interface IHTCalendartime - Date for which to calculate the Hattrick season and week.public final void setTime(java.util.Calendar cal)
setTime in interface IHTCalendarcal - Date for which to calculate the Hattrick season and week.public final java.util.Date getTime()
getTime in interface IHTCalendarpublic void initialize(java.util.Calendar marker)
initialize in interface IHTCalendarmarker - Calendar representing a day on which the week ends/startspublic void setSeasonCorrection(int correction)
setSeasonCorrection in interface IHTCalendarcorrection - TODO Missing Constructuor Parameter Documentation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||