com.klg.jclass.util.calendar
Class JCCalendar.MonthDayOfMonth
java.lang.Object
|
+--com.klg.jclass.util.calendar.JCCalendar.MonthDayOfMonth
- All Implemented Interfaces:
- SpecialDate
- Enclosing class:
- JCCalendar
- public static class JCCalendar.MonthDayOfMonth
- extends Object
- implements SpecialDate
Class to store Month and Day of Month.
For example:
November 11 --> new MonthDayOfMonth(11, 11)
Constructor Summary |
JCCalendar.MonthDayOfMonth(int month,
int day_of_month)
Creates a class with the specified month and day of month. |
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
day_of_month
public int day_of_month
JCCalendar.MonthDayOfMonth
public JCCalendar.MonthDayOfMonth(int month,
int day_of_month)
- Creates a class with the specified month and day of month.
- Parameters:
month
- 0 based: 0 = January ... 11 = Decemberday_of_month
- the day within the month
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?