📄 dailycalendar.java
字号:
* * @param rangeStartingCalendar a java.util.Calendar representing the * starting time for the time range * @param rangeEndingCalendar a java.util.Calendar representing the ending * time for the time range */ public DailyCalendar( Calendar rangeStartingCalendar, Calendar rangeEndingCalendar) { super(); setTimeRange(rangeStartingCalendar, rangeEndingCalendar); } /** * Create a <CODE>DailyCalendar</CODE> with a time range defined by the * specified <CODE>java.util.Calendar</CODE>s and the specified * <CODE>baseCalendar</CODE>. The Calendars are subject to the following * considerations: * <UL><LI>Only the time-of-day fields of the specified Calendars will be * used (the date fields will be ignored)</LI> * <LI>The starting time must be before the ending time of the defined * time range. Note this means that a time range may not cross * daily boundaries (10PM - 2AM). <I>(because only time fields are * are used, it is possible for two Calendars to represent a valid * time range and * <CODE>rangeStartingCalendar.after(rangeEndingCalendar) == * true</CODE>)</I></LI> * </UL> * * <p> * <b>Note:</b> This <CODE>DailyCalendar</CODE> will use the * <code>{@link TimeZone#getDefault()}</code> time zone unless an explicit * time zone is set via <code>{@link BaseCalendar#setTimeZone(TimeZone)}</code> * </p> * * @param baseCalendar the base calendar for this calendar instance * – see {@link BaseCalendar} for more * information on base calendar functionality * @param rangeStartingCalendar a java.util.Calendar representing the * starting time for the time range * @param rangeEndingCalendar a java.util.Calendar representing the ending * time for the time range */ public DailyCalendar(org.quartz.Calendar baseCalendar, Calendar rangeStartingCalendar, Calendar rangeEndingCalendar) { super(baseCalendar); setTimeRange(rangeStartingCalendar, rangeEndingCalendar); } /** * Create a <CODE>DailyCalendar</CODE> with a time range defined by the * specified values and no <CODE>baseCalendar</CODE>. The values are * subject to the following considerations: * <UL><LI>Only the time-of-day portion of the specified values will be * used</LI> * <LI>The starting time must be before the ending time of the defined * time range. Note this means that a time range may not cross * daily boundaries (10PM - 2AM). <I>(because only time value are * are used, it is possible for the two values to represent a valid * time range and <CODE>rangeStartingTime > * rangeEndingTime</CODE>)</I></LI> * </UL> * * <p> * <b>Note:</b> This <CODE>DailyCalendar</CODE> will use the * <code>{@link TimeZone#getDefault()}</code> time zone unless an explicit * time zone is set via <code>{@link BaseCalendar#setTimeZone(TimeZone)}</code>. * You should use <code>{@link #DailyCalendar(String, TimeZone, long, long)}</code> * if you don't want the given <code>rangeStartingTimeInMillis</code> and * <code>rangeEndingTimeInMillis</code> to be evaluated in the default * time zone. * </p> * * @param rangeStartingTimeInMillis a long representing the starting time * for the time range * @param rangeEndingTimeInMillis a long representing the ending time for * the time range */ public DailyCalendar(long rangeStartingTimeInMillis, long rangeEndingTimeInMillis) { super(); setTimeRange(rangeStartingTimeInMillis, rangeEndingTimeInMillis); } /** * Create a <CODE>DailyCalendar</CODE> with a time range defined by the * specified values and the specified <CODE>baseCalendar</CODE>. The values * are subject to the following considerations: * <UL><LI>Only the time-of-day portion of the specified values will be * used</LI> * <LI>The starting time must be before the ending time of the defined * time range. Note this means that a time range may not cross * daily boundaries (10PM - 2AM). <I>(because only time value are * are used, it is possible for the two values to represent a valid * time range and <CODE>rangeStartingTime > * rangeEndingTime</CODE>)</I></LI> * </UL> * * <p> * <b>Note:</b> This <CODE>DailyCalendar</CODE> will use the * <code>{@link TimeZone#getDefault()}</code> time zone unless an explicit * time zone is set via <code>{@link BaseCalendar#setTimeZone(TimeZone)}</code>. * You should use <code>{@link #DailyCalendar(String, Calendar, TimeZone, long, long)}</code> * if you don't want the given <code>rangeStartingTimeInMillis</code> and * <code>rangeEndingTimeInMillis</code> to be evaluated in the default * time zone. * </p> * * @param baseCalendar the base calendar for this calendar * instance – see {@link * BaseCalendar} for more information on * base calendar functionality * @param rangeStartingTimeInMillis a long representing the starting time * for the time range * @param rangeEndingTimeInMillis a long representing the ending time for * the time range */ public DailyCalendar(org.quartz.Calendar baseCalendar, long rangeStartingTimeInMillis, long rangeEndingTimeInMillis) { super(baseCalendar); setTimeRange(rangeStartingTimeInMillis, rangeEndingTimeInMillis); } /** * Create a <CODE>DailyCalendar</CODE> with a time range defined by the * specified values and no <CODE>baseCalendar</CODE>. The values are * subject to the following considerations: * <UL><LI>Only the time-of-day portion of the specified values will be * used</LI> * <LI>The starting time must be before the ending time of the defined * time range. Note this means that a time range may not cross * daily boundaries (10PM - 2AM). <I>(because only time value are * are used, it is possible for the two values to represent a valid * time range and <CODE>rangeStartingTime > * rangeEndingTime</CODE>)</I></LI> * </UL> * * @param timeZone the time zone for of the * <code>DailyCalendar</code> which will * also be used to resolve the given * start/end times. * @param rangeStartingTimeInMillis a long representing the starting time * for the time range * @param rangeEndingTimeInMillis a long representing the ending time for * the time range */ public DailyCalendar(TimeZone timeZone, long rangeStartingTimeInMillis, long rangeEndingTimeInMillis) { super(timeZone); setTimeRange(rangeStartingTimeInMillis, rangeEndingTimeInMillis); } /** * Create a <CODE>DailyCalendar</CODE> with a time range defined by the * specified values and the specified <CODE>baseCalendar</CODE>. The values * are subject to the following considerations: * <UL><LI>Only the time-of-day portion of the specified values will be * used</LI> * <LI>The starting time must be before the ending time of the defined * time range. Note this means that a time range may not cross * daily boundaries (10PM - 2AM). <I>(because only time value are * are used, it is possible for the two values to represent a valid * time range and <CODE>rangeStartingTime > * rangeEndingTime</CODE>)</I></LI> * </UL> * * @param baseCalendar the base calendar for this calendar * instance – see {@link * BaseCalendar} for more information on * base calendar functionality * @param timeZone the time zone for of the * <code>DailyCalendar</code> which will * also be used to resolve the given * start/end times. * @param rangeStartingTimeInMillis a long representing the starting time * for the time range * @param rangeEndingTimeInMillis a long representing the ending time for * the time range */ public DailyCalendar(org.quartz.Calendar baseCalendar, TimeZone timeZone, long rangeStartingTimeInMillis, long rangeEndingTimeInMillis) { super(baseCalendar, timeZone); setTimeRange(rangeStartingTimeInMillis, rangeEndingTimeInMillis); } /** * @deprecated The use of <code>name</code> is no longer supported. * * @see DailyCalendar#DailyCalendar(String, String) */ public DailyCalendar(String name, String rangeStartingTime, String rangeEndingTime) { this(rangeStartingTime, rangeEndingTime); this.name = name; } /** * @deprecated The use of <code>name</code> is no longer supported. * * @see DailyCalendar#DailyCalendar(org.quartz.Calendar, String, String) */ public DailyCalendar(String name, org.quartz.Calendar baseCalendar, String rangeStartingTime, String rangeEndingTime) { this(baseCalendar, rangeStartingTime, rangeEndingTime); this.name = name; } /** * @deprecated The use of <code>name</code> is no longer supported. * * @see DailyCalendar#DailyCalendar(int, int, int, int, int, int, int, int) */ public DailyCalendar(String name, int rangeStartingHourOfDay, int rangeStartingMinute, int rangeStartingSecond, int rangeStartingMillis, int rangeEndingHourOfDay, int rangeEndingMinute, int rangeEndingSecond, int rangeEndingMillis) { this(rangeStartingHourOfDay, rangeStartingMinute, rangeStartingSecond, rangeStartingMillis, rangeEndingHourOfDay, rangeEndingMinute, rangeEndingSecond, rangeEndingMillis); this.name = name; } /** * @deprecated The use of <code>name</code> is no longer supported. * * @see DailyCalendar#DailyCalendar(org.quartz.Calendar, int, int, int, int, int, int, int, int) */ public DailyCalendar(String name, org.quartz.Calendar baseCalendar, int rangeStartingHourOfDay, int rangeStartingMinute, int rangeStartingSecond, int rangeStartingMillis, int rangeEndingHourOfDay, int rangeEndingMinute, int rangeEndingSecond, int rangeEndingMillis) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -