datepicker
Class WeekMap
java.lang.Object
datepicker.WeekMap
public class WeekMap
- extends java.lang.Object
Creates a TreeMap of WeekObject instances.
Each element in the map is created from a
record read from the serialized Weeks file.
|
Constructor Summary |
WeekMap(int _firstdayinMonth,
int _nofdaysinMonth,
int _weekNumber)
Constructor for a week map. |
|
Method Summary |
java.util.TreeMap<java.lang.Integer,WeekObject> |
getMap()
Gets a copy of the Weeks file mapped to TreeMap. |
void |
readWeekList()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeekMap
public WeekMap(int _firstdayinMonth,
int _nofdaysinMonth,
int _weekNumber)
- Constructor for a week map.
- Parameters:
_firstdayinMonth - The day in week number of the first day in the month,
starting with 1 if the first day in the month is a Monday._nofdaysinMonth - The number of days in the month._weekNumber - The first week number in the month.
getMap
public java.util.TreeMap<java.lang.Integer,WeekObject> getMap()
- Gets a copy of the Weeks file mapped to
TreeMap.
- Returns:
- A
TreeMap of Week entries.
readWeekList
public void readWeekList()