com.klg.jclass.util.calendar
Class JCCalendar.MonthWeekDayOfWeek
java.lang.Object
|
+--com.klg.jclass.util.calendar.JCCalendar.MonthWeekDayOfWeek
- All Implemented Interfaces:
- SpecialDate
- Enclosing class:
- JCCalendar
- public class JCCalendar.MonthWeekDayOfWeek
- extends Object
- implements SpecialDate
Class to store a Month, Week, and Day of Week.
For example:
Labour Day (First Monday of September) -->
new MonthWeekDayOfWeek(9, 1, 1)
Constructor Summary |
JCCalendar.MonthWeekDayOfWeek(int month,
int week,
int day_of_week)
Creates a class with the specified month, week, and day of week. |
Method Summary |
boolean |
isSpecialDate(int year,
int month,
int date,
int week)
Returns whether the given date is special. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
month
public int month
week
public int week
day_of_week
public int day_of_week
JCCalendar.MonthWeekDayOfWeek
public JCCalendar.MonthWeekDayOfWeek(int month,
int week,
int day_of_week)
- Creates a class with the specified month, week, and day of week.
- Parameters:
month
- 0 based: 0 - January ... 11 - Decemberweek
- 1 basedday_of_week
- 0 based: 0 - Sunday ... 6 - Saturday
isSpecialDate
public boolean isSpecialDate(int year,
int month,
int date,
int week)
- Returns whether the given date is special.
- Specified by:
isSpecialDate
in interface SpecialDate
- Parameters:
year
- the year to use (for example, 1997)month
- the month (0 to 11)date
- the day of the monthweek
- the week of the month
- Returns:
- Is the date specified special?