Class HolidayCalendar
- java.lang.Object
- 
- org.quartz.impl.calendar.BaseCalendar
- 
- org.quartz.impl.calendar.HolidayCalendar
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- Calendar
 
 public class HolidayCalendar extends BaseCalendar implements Calendar, java.io.Serializable This implementation of the Calendar stores a list of holidays (full days that are excluded from scheduling). The implementation DOES take the year into consideration, so if you want to exclude July 4th for the next 10 years, you need to add 10 entries to the exclude list. - Author:
- Sharada Jambula, Juergen Donnerstag
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description HolidayCalendar()HolidayCalendar(java.util.TimeZone timeZone)HolidayCalendar(Calendar baseCalendar)HolidayCalendar(Calendar baseCalendar, java.util.TimeZone timeZone)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExcludedDate(java.util.Date excludedDate)Add the given Date to the list of excluded days.java.lang.Objectclone()java.util.SortedSet<java.util.Date>getExcludedDates()Returns aSortedSetof Dates representing the excluded days.longgetNextIncludedTime(long timeStamp)Determine the next time (in milliseconds) that is 'included' by the Calendar after the given time.booleanisTimeIncluded(long timeStamp)Determine whether the given time (in milliseconds) is 'included' by the Calendar.voidremoveExcludedDate(java.util.Date dateToRemove)- 
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
 
 - 
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. Note that this Calendar is only has full-day precision. - Specified by:
- getNextIncludedTimein interface- Calendar
- Overrides:
- getNextIncludedTimein class- BaseCalendar
- See Also:
- Calendar.getNextIncludedTime(long)
 
 - 
addExcludedDatepublic void addExcludedDate(java.util.Date excludedDate) Add the given Date to the list of excluded days. Only the month, day and year of the returned dates are significant. 
 - 
removeExcludedDatepublic void removeExcludedDate(java.util.Date dateToRemove) 
 - 
getExcludedDatespublic java.util.SortedSet<java.util.Date> getExcludedDates() Returns a SortedSetof Dates representing the excluded days. Only the month, day and year of the returned dates are significant.
 
- 
 
-