Class MonthlyCalendar
- java.lang.Object
- 
- org.quartz.impl.calendar.BaseCalendar
- 
- org.quartz.impl.calendar.MonthlyCalendar
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- Calendar
 
 public class MonthlyCalendar extends BaseCalendar implements Calendar, java.io.Serializable This implementation of the Calendar excludes a set of days of the month. You may use it to exclude every first day of each month for example. But you may define any day of a month. - Author:
- Juergen Donnerstag
- See Also:
- Calendar,- BaseCalendar, Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MonthlyCalendar()MonthlyCalendar(java.util.TimeZone timeZone)MonthlyCalendar(Calendar baseCalendar)MonthlyCalendar(Calendar baseCalendar, java.util.TimeZone timeZone)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareAllDaysExcluded()Check if all days are excluded.java.lang.Objectclone()boolean[]getDaysExcluded()Get the array which defines the exclude-value of each day of month.longgetNextIncludedTime(long timeStamp)Determine the next time (in milliseconds) that is 'included' by the Calendar after the given time.booleanisDayExcluded(int day)Return true, if day is defined to be excluded.booleanisTimeIncluded(long timeStamp)Determine whether the given time (in milliseconds) is 'included' by the Calendar.voidsetDayExcluded(int day, boolean exclude)Redefine a certain day of the month to be excluded (true) or included (false).voidsetDaysExcluded(boolean[] days)Redefine the array of days excluded.- 
Methods inherited from class org.quartz.impl.calendar.BaseCalendarcreateJavaCalendar, createJavaCalendar, getBaseCalendar, getDescription, getEndOfDayJavaCalendar, getStartOfDayJavaCalendar, getTimeZone, setBaseCalendar, setDescription, setTimeZone
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.quartz.CalendargetBaseCalendar, getDescription, setBaseCalendar, setDescription
 
- 
 
- 
- 
- 
Method Detail- 
clonepublic java.lang.Object clone() - Specified by:
- clonein interface- Calendar
- Overrides:
- clonein class- BaseCalendar
 
 - 
getDaysExcludedpublic boolean[] getDaysExcluded() Get the array which defines the exclude-value of each day of month. Only the first 31 elements of the array are relevant, with the 0 index element representing the first day of the month. 
 - 
isDayExcludedpublic boolean isDayExcluded(int day) Return true, if day is defined to be excluded. - Parameters:
- day- The day of the month (from 1 to 31) to check.
 
 - 
setDaysExcludedpublic void setDaysExcluded(boolean[] days) Redefine the array of days excluded. The array must non-null and of size greater or equal to 31. The 0 index element represents the first day of the month. 
 - 
setDayExcludedpublic void setDayExcluded(int day, boolean exclude)Redefine a certain day of the month to be excluded (true) or included (false). - Parameters:
- day- The day of the month (from 1 to 31) to set.
 
 - 
areAllDaysExcludedpublic boolean areAllDaysExcluded() Check if all days are excluded. That is no day is included. 
 - 
isTimeIncludedpublic boolean isTimeIncluded(long timeStamp) Determine whether the given time (in milliseconds) is 'included' by the Calendar. Note that this Calendar is only has full-day precision. - Specified by:
- isTimeIncludedin interface- Calendar
- Overrides:
- isTimeIncludedin class- BaseCalendar
- See Also:
- Calendar.isTimeIncluded(long)
 
 - 
getNextIncludedTimepublic long getNextIncludedTime(long timeStamp) Determine the next time (in milliseconds) that is 'included' by the Calendar after the given time. Return the original value if timeStamp is included. Return 0 if all days are excluded. Note that this Calendar is only has full-day precision. - Specified by:
- getNextIncludedTimein interface- Calendar
- Overrides:
- getNextIncludedTimein class- BaseCalendar
- See Also:
- Calendar.getNextIncludedTime(long)
 
 
- 
 
-