亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? croncalendar.java

?? Java中非常實用流控制工具
?? JAVA
字號:
package org.quartz.impl.calendar;import java.text.ParseException;import java.util.Date;import java.util.TimeZone;import org.quartz.Calendar;import org.quartz.CronExpression;/** * This implementation of the Calendar excludes the set of times expressed by a * given {@link org.quartz.CronExpression CronExpression}. For example, you  * could use this calendar to exclude all but business hours (8AM - 5PM) every  * day using the expression &quot;* * 0-7,18-23 ? * *&quot;.  * <P> * It is important to remember that the cron expression here describes a set of * times to be <I>excluded</I> from firing. Whereas the cron expression in  * {@link org.quartz.CronTrigger CronTrigger} describes a set of times that can * be <I>included</I> for firing. Thus, if a <CODE>CronTrigger</CODE> has a  * given cron expression and is associated with a <CODE>CronCalendar</CODE> with * the <I>same</I> expression, the calendar will exclude all the times the  * trigger includes, and they will cancel each other out.  *  * @author Aaron Craven */public class CronCalendar extends BaseCalendar {    static final long serialVersionUID = -8172103999750856831L;    /** @deprecated The use of <code>name</code> is no longer supported. */    private String name;        CronExpression cronExpression;    /**     * Create a <CODE>CronCalendar</CODE> with the given cron expression and no     * <CODE>baseCalendar</CODE>.     *       * @param expression a String representation of the desired cron expression     */    public CronCalendar(String expression)         throws ParseException {        this(null, expression, null);    }    /**     * Create a <CODE>CronCalendar</CODE> with the given cron expression and      * <CODE>baseCalendar</CODE>.      *      * @param baseCalendar the base calendar for this calendar instance &ndash;     *                     see {@link BaseCalendar} for more information on base     *                     calendar functionality     * @param expression   a String representation of the desired cron expression     */    public CronCalendar(Calendar baseCalendar,            String expression) throws ParseException {        this(baseCalendar, expression, null);    }    /**     * Create a <CODE>CronCalendar</CODE> with the given cron exprssion,      * <CODE>baseCalendar</CODE>, and <code>TimeZone</code>.      *      * @param baseCalendar the base calendar for this calendar instance &ndash;     *                     see {@link BaseCalendar} for more information on base     *                     calendar functionality     * @param expression   a String representation of the desired cron expression     * @param timeZone     *          Specifies for which time zone the <code>expression</code>     *          should be interpreted, i.e. the expression 0 0 10 * * ?, is     *          resolved to 10:00 am in this time zone.  If      *          <code>timeZone</code> is <code>null</code> then      *          <code>TimeZone.getDefault()</code> will be used.     */    public CronCalendar(Calendar baseCalendar,            String expression, TimeZone timeZone) throws ParseException {        super(baseCalendar);        this.cronExpression = new CronExpression(expression);        this.cronExpression.setTimeZone(timeZone);    }    /**     * @deprecated The use of <code>name</code> is no longer supported.     *      * @see #CronCalendar(String)     */    public CronCalendar(String name, String expression)         throws ParseException {        this(expression);        this.name = name;    }    /**     * @deprecated The use of <code>name</code> is no longer supported.     *      * @see #CronCalendar(Calendar, String)     */    public CronCalendar(String name, Calendar baseCalendar,            String expression) throws ParseException {        this(baseCalendar, expression);        this.name = name;    }    /**     * @deprecated The use of <code>name</code> is no longer supported.     *      * @see #CronCalendar(Calendar, String, TimeZone)     */    public CronCalendar(String name, Calendar baseCalendar,            String expression, TimeZone timeZone) throws ParseException {        this(baseCalendar, expression, timeZone);        this.name = name;    }    /**     * Returns the time zone for which the <code>CronExpression</code> of     * this <code>CronCalendar</code> will be resolved.     * <p>     * Overrides <code>{@link BaseCalendar#getTimeZone()}</code> to     * defer to its <code>CronExpression</code>.     * </p>     */    public TimeZone getTimeZone() {        return cronExpression.getTimeZone();    }    /**     * Sets the time zone for which the <code>CronExpression</code> of this     * <code>CronCalendar</code> will be resolved.  If <code>timeZone</code>      * is <code>null</code> then <code>TimeZone.getDefault()</code> will be      * used.     * <p>     * Overrides <code>{@link BaseCalendar#setTimeZone(TimeZone)}</code> to     * defer to its <code>CronExpression</code>.     * </p>     */    public void setTimeZone(TimeZone timeZone) {        cronExpression.setTimeZone(timeZone);    }        /**     * Returns the name of the <CODE>CronCalendar</CODE>     *      * @return the name of the <CODE>CronCalendar</CODE>     *      * @deprecated The use of <code>name</code> is no longer supported.     */    public String getName() {        return name;    }    /**     * Determines whether the given time (in milliseconds) is 'included' by the     * <CODE>BaseCalendar</CODE>     *      * @param timeInMillis the date/time to test     * @return a boolean indicating whether the specified time is 'included' by     *         the <CODE>CronCalendar</CODE>     */    public boolean isTimeIncluded(long timeInMillis) {                if ((getBaseCalendar() != null) &&                 (getBaseCalendar().isTimeIncluded(timeInMillis) == false)) {            return false;        }                return (!(cronExpression.isSatisfiedBy(new Date(timeInMillis))));    }    /**     * Determines the next time included by the <CODE>CronCalendar</CODE>     * after the specified time.     *      * @param timeInMillis the initial date/time after which to find an      *                     included time     * @return the time in milliseconds representing the next time included     *         after the specified time.     */    public long getNextIncludedTime(long timeInMillis) {        long nextIncludedTime = timeInMillis + 1; //plus on millisecond                while (!isTimeIncluded(nextIncludedTime)) {            //If the time is in a range excluded by this calendar, we can            // move to the end of the excluded time range and continue testing            // from there. Otherwise, if nextIncludedTime is excluded by the            // baseCalendar, ask it the next time it includes and begin testing            // from there. Failing this, add one millisecond and continue            // testing.            if (cronExpression.isSatisfiedBy(new Date(nextIncludedTime))) {                nextIncludedTime = cronExpression.getNextInvalidTimeAfter(                        new Date(nextIncludedTime)).getTime();            } else if ((getBaseCalendar() != null) &&                     (!getBaseCalendar().isTimeIncluded(nextIncludedTime))){                nextIncludedTime =                     getBaseCalendar().getNextIncludedTime(nextIncludedTime);            } else {                nextIncludedTime++;            }        }                return nextIncludedTime;    }    /**     * Returns a string representing the properties of the      * <CODE>CronCalendar</CODE>     *      * @return the properteis of the CronCalendar in a String format     */    public String toString() {        StringBuffer buffer = new StringBuffer();        if (name != null) {            buffer.append(name).append(": ");        }        buffer.append("base calendar: [");        if (getBaseCalendar() != null) {            buffer.append(getBaseCalendar().toString());        } else {            buffer.append("null");        }        buffer.append("], excluded cron expression: '");        buffer.append(cronExpression);        buffer.append("'");        return buffer.toString();    }        /**     * Returns the object representation of the cron expression that defines the     * dates and times this calendar excludes.     *      * @return the cron expression     * @see org.quartz.CronExpression     */    public CronExpression getCronExpression() {        return cronExpression;    }        /**     * Sets the cron expression for the calendar to a new value     *      * @param expression the new string value to build a cron expression from     * @throws ParseException     *         if the string expression cannot be parsed     */    public void setCronExpression(String expression) throws ParseException {        CronExpression newExp = new CronExpression(expression);                this.cronExpression = newExp;    }    /**     * Sets the cron expression for the calendar to a new value     *      * @param expression the new cron expression     */    public void setCronExpression(CronExpression expression) {        if (expression == null) {            throw new IllegalArgumentException("expression cannot be null");        }                this.cronExpression = expression;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天欧美精品| 欧美日韩综合在线免费观看| 欧美va亚洲va香蕉在线| 美女国产一区二区| 久久亚洲春色中文字幕久久久| 国产一区美女在线| 久久精品视频免费| 成人app在线观看| 亚洲精品一卡二卡| 欧美二区乱c少妇| 麻豆极品一区二区三区| 国产欧美日韩在线观看| 97超碰欧美中文字幕| 亚洲成人动漫精品| 久久综合色综合88| 91麻豆国产精品久久| 亚洲国产成人av好男人在线观看| 日韩免费视频一区| 粉嫩嫩av羞羞动漫久久久| 亚洲另类在线一区| 日韩免费观看2025年上映的电影| 福利电影一区二区| 午夜影院久久久| 精品精品国产高清一毛片一天堂| 波多野结衣亚洲| 午夜精品福利在线| 久久久久一区二区三区四区| 色哟哟精品一区| 激情综合色播激情啊| 亚洲欧美怡红院| 欧美一卡在线观看| 91免费看视频| 激情国产一区二区| 亚洲一级片在线观看| 精品1区2区在线观看| 欧洲精品一区二区三区在线观看| 国产米奇在线777精品观看| 一区二区三区精品在线| 日韩免费视频线观看| 在线一区二区三区| 欧美激情一区在线| 日韩1区2区日韩1区2区| 欧美激情一区不卡| 日韩一区二区三区在线视频| 不卡的电影网站| 麻豆91精品91久久久的内涵| 亚洲免费观看高清完整版在线观看| 日韩精品专区在线影院观看| 欧美日韩一级片在线观看| 成人高清免费在线播放| 久久av中文字幕片| 日本成人在线网站| 一区二区三区在线观看网站| 欧美国产欧美综合| 精品国产一区二区三区忘忧草 | 亚洲欧美另类久久久精品| 日韩免费观看高清完整版 | 亚洲一区二区三区四区五区黄| 亚洲影院在线观看| 色天天综合色天天久久| 亚洲精品视频自拍| 国产精品对白交换视频| 久久青草国产手机看片福利盒子| 欧美日韩国产高清一区二区三区| 日本久久电影网| 不卡一卡二卡三乱码免费网站| 国产成a人无v码亚洲福利| 国产在线看一区| 久久成人免费日本黄色| 一区二区三区蜜桃网| 亚洲乱码中文字幕| 一区二区中文视频| 亚洲欧美另类小说视频| 亚洲人成电影网站色mp4| 国产亲近乱来精品视频| 久久精品人人做人人综合| 久久久久久久久久久99999| 亚洲精品一区二区三区蜜桃下载 | 成人免费毛片嘿嘿连载视频| 国产精品一级黄| 粉嫩欧美一区二区三区高清影视| 国产精品综合一区二区| 国产精品久久三区| 亚洲成人中文在线| 精品毛片乱码1区2区3区| 欧美一级欧美三级在线观看| 亚洲国产成人私人影院tom| 久久色.com| 中文字幕av一区 二区| 亚洲视频狠狠干| 亚洲激情校园春色| 首页国产欧美久久| 久久国产人妖系列| 国产成a人亚洲精品| 91视频在线观看免费| 欧美撒尿777hd撒尿| 777精品伊人久久久久大香线蕉| 欧美一级在线观看| 国产欧美1区2区3区| 一区二区三区免费在线观看| 日韩一区精品视频| 国产精品自在欧美一区| proumb性欧美在线观看| 欧美视频中文一区二区三区在线观看| 91麻豆精品国产91久久久久久久久 | 亚洲成在人线免费| 麻豆一区二区三区| 国产乱码一区二区三区| 色婷婷久久久久swag精品| 欧洲生活片亚洲生活在线观看| 91精品国产综合久久国产大片| 久久中文娱乐网| 亚洲激情男女视频| 免费人成黄页网站在线一区二区| 国产精品一区二区91| 欧美视频一区二区| 久久这里只精品最新地址| 亚洲老妇xxxxxx| 国产一区二区在线视频| 欧美日韩一区在线观看| 中国色在线观看另类| 日韩av网站免费在线| 99久久精品国产网站| 这里是久久伊人| 成人免费一区二区三区在线观看 | 亚洲综合999| 国产成a人亚洲| 18成人在线观看| 色综合久久天天| 久久你懂得1024| 亚洲韩国精品一区| 夫妻av一区二区| 日韩一区二区三区视频在线| 亚洲毛片av在线| 国产精品77777| 日韩一级二级三级| 日韩av电影免费观看高清完整版| 国产麻豆精品theporn| 欧美久久婷婷综合色| 成人免费一区二区三区视频 | 中文字幕字幕中文在线中不卡视频| 免费高清不卡av| 欧美日韩在线三级| 国产精品久久影院| 激情小说亚洲一区| 91精品国产综合久久福利| 亚洲国产精品一区二区尤物区| va亚洲va日韩不卡在线观看| 国产日韩影视精品| 国产精品一区专区| 久久久一区二区三区捆绑**| 蜜桃视频一区二区| 91麻豆精品91久久久久同性| 亚洲va欧美va人人爽午夜| 91激情五月电影| 亚洲欧美激情视频在线观看一区二区三区| 国产高清亚洲一区| 国产亚洲成av人在线观看导航| 美国三级日本三级久久99| 777久久久精品| 日韩1区2区日韩1区2区| 91精品国产一区二区三区香蕉| 三级影片在线观看欧美日韩一区二区| 欧美视频一区二区| 亚洲一区二区免费视频| 欧美色精品在线视频| 亚洲国产精品自拍| 69堂精品视频| 精品一区二区三区在线播放 | 中文字幕第一页久久| 国产一区激情在线| 日本一区二区三区在线观看| 国产精品一区在线观看乱码| 国产蜜臀av在线一区二区三区| 福利91精品一区二区三区| 国产精品进线69影院| 91在线高清观看| 亚洲黄色片在线观看| 欧美欧美欧美欧美首页| 琪琪一区二区三区| 久久婷婷成人综合色| 成人在线综合网站| 一区二区三区在线视频播放| 欧洲av在线精品| 免费不卡在线观看| 国产日韩综合av| 色8久久精品久久久久久蜜| 婷婷丁香激情综合| 精品国产免费人成在线观看| 成人影视亚洲图片在线| 亚洲精品免费看| 日韩视频在线你懂得| 国内精品国产成人| 国产一区在线观看视频| 亚洲国产精品成人综合| 色悠悠亚洲一区二区| 日本欧美久久久久免费播放网| 久久综合久久综合久久综合| 92精品国产成人观看免费| 日日夜夜免费精品|