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

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

?? stringkeydirtyflagmap.java

?? Java中非常實用流控制工具
?? JAVA
字號:
/*  * Copyright 2004-2006 OpenSymphony  *  * Licensed under the Apache License, Version 2.0 (the "License"); you may not  * use this file except in compliance with the License. You may obtain a copy  * of the License at  *  *   http://www.apache.org/licenses/LICENSE-2.0  *    * Unless required by applicable law or agreed to in writing, software  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the  * License for the specific language governing permissions and limitations  * under the License. */package org.quartz.utils;import java.io.Serializable;import java.util.Iterator;import java.util.Map;/** * <p> * An implementation of <code>Map</code> that wraps another <code>Map</code> * and flags itself 'dirty' when it is modified, enforces that all keys are * Strings.  * </p> *  * <p> * All allowsTransientData flag related methods are deprecated as of version 1.6. * </p> */public class StringKeyDirtyFlagMap extends DirtyFlagMap {    static final long serialVersionUID = -9076749120524952280L;        /**     * @deprecated JDBCJobStores no longer prune out transient data.  If you     * include non-Serializable values in the Map, you will now get an      * exception when attempting to store it in a database.     */    private boolean allowsTransientData = false;    public StringKeyDirtyFlagMap() {        super();    }    public StringKeyDirtyFlagMap(int initialCapacity) {        super(initialCapacity);    }    public StringKeyDirtyFlagMap(int initialCapacity, float loadFactor) {        super(initialCapacity, loadFactor);    }    /**     * Get a copy of the Map's String keys in an array of Strings.     */    public String[] getKeys() {        return (String[]) keySet().toArray(new String[size()]);    }    /**     * Tell the <code>StringKeyDirtyFlagMap</code> that it should     * allow non-<code>Serializable</code> values.  Enforces that the Map      * doesn't already include transient data.     *      * @deprecated JDBCJobStores no longer prune out transient data.  If you     * include non-Serializable values in the Map, you will now get an      * exception when attempting to store it in a database.     */    public void setAllowsTransientData(boolean allowsTransientData) {            if (containsTransientData() && !allowsTransientData) {            throw new IllegalStateException(                "Cannot set property 'allowsTransientData' to 'false' "                    + "when data map contains non-serializable objects.");        }            this.allowsTransientData = allowsTransientData;    }    /**     * Whether the <code>StringKeyDirtyFlagMap</code> allows      * non-<code>Serializable</code> values.     *      * @deprecated JDBCJobStores no longer prune out transient data.  If you     * include non-Serializable values in the Map, you will now get an      * exception when attempting to store it in a database.     */    public boolean getAllowsTransientData() {        return allowsTransientData;    }    /**     * Determine whether any values in this Map do not implement      * <code>Serializable</code>.  Always returns false if this Map     * is flagged to not allow transient data.     *      * @deprecated JDBCJobStores no longer prune out transient data.  If you     * include non-Serializable values in the Map, you will now get an      * exception when attempting to store it in a database.     */    public boolean containsTransientData() {        if (!getAllowsTransientData()) { // short circuit...            return false;        }            String[] keys = getKeys();        for (int i = 0; i < keys.length; i++) {            Object o = super.get(keys[i]);            if (!(o instanceof Serializable)) {                return true;            }        }            return false;    }    /**     * Removes any data values in the map that are non-Serializable.  Does      * nothing if this Map does not allow transient data.     *      * @deprecated JDBCJobStores no longer prune out transient data.  If you     * include non-Serializable values in the Map, you will now get an      * exception when attempting to store it in a database.     */    public void removeTransientData() {        if (!getAllowsTransientData()) { // short circuit...            return;        }            String[] keys = getKeys();        for (int i = 0; i < keys.length; i++) {            Object o = super.get(keys[i]);            if (!(o instanceof Serializable)) {                remove(keys[i]);            }        }    }        /**     * <p>     * Adds the name-value pairs in the given <code>Map</code> to the      * <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * <p>     * All keys must be <code>String</code>s.     * </p>     */    public void putAll(Map map) {        for (Iterator entryIter = map.entrySet().iterator(); entryIter.hasNext();) {            Map.Entry entry = (Map.Entry) entryIter.next();                        // will throw IllegalArgumentException if key is not a String            put(entry.getKey(), entry.getValue());        }    }    /**     * <p>     * Adds the given <code>int</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, int value) {        super.put(key, new Integer(value));    }    /**     * <p>     * Adds the given <code>long</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, long value) {        super.put(key, new Long(value));    }    /**     * <p>     * Adds the given <code>float</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, float value) {        super.put(key, new Float(value));    }    /**     * <p>     * Adds the given <code>double</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, double value) {        super.put(key, new Double(value));    }    /**     * <p>     * Adds the given <code>boolean</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, boolean value) {        super.put(key, new Boolean(value));    }    /**     * <p>     * Adds the given <code>char</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, char value) {        super.put(key, new Character(value));    }    /**     * <p>     * Adds the given <code>String</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public void put(String key, String value) {        super.put(key, value);    }    /**     * <p>     * Adds the given <code>Object</code> value to the <code>StringKeyDirtyFlagMap</code>.     * </p>     */    public Object put(Object key, Object value) {        if (!(key instanceof String)) {            throw new IllegalArgumentException(                    "Keys in map must be Strings.");        }            return super.put(key, value);    }    /**     * <p>     * Retrieve the identified <code>int</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not an Integer.     */    public int getInt(String key) {        Object obj = get(key);            try {            return ((Integer) obj).intValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not an Integer.");        }    }    /**     * <p>     * Retrieve the identified <code>long</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a Long.     */    public long getLong(String key) {        Object obj = get(key);            try {            return ((Long) obj).longValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not a Long.");        }    }    /**     * <p>     * Retrieve the identified <code>float</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a Float.     */    public float getFloat(String key) {        Object obj = get(key);            try {            return ((Float) obj).floatValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not a Float.");        }    }    /**     * <p>     * Retrieve the identified <code>double</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a Double.     */    public double getDouble(String key) {        Object obj = get(key);            try {            return ((Double) obj).doubleValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not a Double.");        }    }    /**     * <p>     * Retrieve the identified <code>boolean</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a Boolean.     */    public boolean getBoolean(String key) {        Object obj = get(key);            try {            return ((Boolean) obj).booleanValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not a Boolean.");        }    }    /**     * <p>     * Retrieve the identified <code>char</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a Character.     */    public char getChar(String key) {        Object obj = get(key);            try {            return ((Character) obj).charValue();        } catch (Exception e) {            throw new ClassCastException("Identified object is not a Character.");        }    }    /**     * <p>     * Retrieve the identified <code>String</code> value from the <code>StringKeyDirtyFlagMap</code>.     * </p>     *      * @throws ClassCastException     *           if the identified object is not a String.     */    public String getString(String key) {        Object obj = get(key);            try {            return (String) obj;        } catch (Exception e) {            throw new ClassCastException("Identified object is not a String.");        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚瑟在线精品视频| av影院午夜一区| 欧美大黄免费观看| 精品一区二区三区免费观看| 精品国产制服丝袜高跟| 粉嫩av一区二区三区粉嫩| 中文一区一区三区高中清不卡| 国产在线看一区| 亚洲欧美色图小说| 欧美午夜精品免费| 成人av资源站| 亚洲精品v日韩精品| 欧美色倩网站大全免费| 另类欧美日韩国产在线| 中文字幕一区二区三区乱码在线| 在线国产电影不卡| 久久福利资源站| 综合中文字幕亚洲| 91精品国产综合久久香蕉的特点 | 亚洲国产欧美在线人成| 91精品国产综合久久香蕉的特点| 国产专区欧美精品| 亚洲va欧美va人人爽| 精品欧美一区二区久久| 欧美最猛黑人xxxxx猛交| 成人一区二区三区在线观看| 日本三级亚洲精品| 一区二区在线免费观看| 国产日韩欧美精品在线| 精品剧情v国产在线观看在线| 色网综合在线观看| 91免费看`日韩一区二区| 国产成人av一区二区三区在线| 美腿丝袜在线亚洲一区| 亚洲1区2区3区4区| 亚洲国产精品久久人人爱蜜臀| 亚洲免费观看视频| 亚洲精品国产高清久久伦理二区| 国产精品素人视频| 久久精品亚洲精品国产欧美 | 17c精品麻豆一区二区免费| 精品国产精品一区二区夜夜嗨| 国产精一品亚洲二区在线视频| 亚洲精品免费在线观看| 亚洲一卡二卡三卡四卡无卡久久| 亚洲女与黑人做爰| 日本不卡一区二区三区高清视频| 五月婷婷久久丁香| 亚洲综合在线五月| 亚洲在线视频免费观看| 裸体歌舞表演一区二区| 高清在线成人网| 欧美精品第一页| 国产精品视频一区二区三区不卡| 日韩美女视频一区| 蜜桃传媒麻豆第一区在线观看| 成人蜜臀av电影| 精品入口麻豆88视频| 亚洲一区二区在线免费观看视频| 日韩高清在线一区| 成人app网站| 精品99999| 奇米888四色在线精品| 91成人在线观看喷潮| 国产精品久久久久久妇女6080| 日韩精品1区2区3区| 欧美日韩一区二区三区视频| 国产欧美日韩卡一| 国产成人精品亚洲日本在线桃色| 欧美日韩不卡在线| 亚洲成av人片在线观看无码| aa级大片欧美| 国产精品女主播av| 成人精品一区二区三区中文字幕| 日韩写真欧美这视频| 五月天中文字幕一区二区| 精品视频123区在线观看| 亚洲精品欧美综合四区| 欧美最猛黑人xxxxx猛交| 亚洲一区二区视频| 日韩一区二区三区四区| 蜜臀久久99精品久久久画质超高清| 毛片av一区二区| 日本乱人伦一区| 国产精品成人一区二区艾草| 国产成人在线视频播放| 中文字幕高清不卡| 色吧成人激情小说| 青娱乐精品在线视频| 久久久精品国产免费观看同学| 国产一区三区三区| 国产精品成人网| 欧美一区二区三区在线观看 | 欧美a一区二区| 国产精品久久久久影院色老大| 在线免费观看成人短视频| 热久久一区二区| 国产精品久久久久婷婷二区次| 欧美电影一区二区| 99精品黄色片免费大全| 久久超碰97人人做人人爱| 亚洲免费在线播放| 国产日韩欧美精品一区| 337p亚洲精品色噜噜| 成人av电影在线观看| 国产精品资源网| 国产一二精品视频| 水野朝阳av一区二区三区| 中文字幕制服丝袜一区二区三区| 日韩一区二区三区电影| 欧美疯狂性受xxxxx喷水图片| 97精品久久久久中文字幕 | 91精品国产乱码| 成人高清伦理免费影院在线观看| 天天色天天爱天天射综合| 亚洲一区精品在线| 中文字幕一区二区日韩精品绯色| 精品999在线播放| 欧美大片在线观看一区二区| 日韩一区二区免费视频| 91精品视频网| 日韩精品一区二区三区中文精品| 777xxx欧美| 国产成人精品在线看| 美女一区二区久久| 久久电影国产免费久久电影| 日韩成人免费电影| 久久99久久久久| 国产91富婆露脸刺激对白 | 国产成人在线色| 99久久99久久精品国产片果冻| 懂色av中文一区二区三区| 色综合久久久久综合体| 91精品国产黑色紧身裤美女| 久久综合丝袜日本网| 亚洲欧美aⅴ...| 久久99热这里只有精品| 波多野结衣精品在线| 欧美老肥妇做.爰bbww| 久久久久国产精品麻豆ai换脸| 精品日韩一区二区三区免费视频| 国产三级欧美三级日产三级99| 国产精品三级在线观看| 日韩av电影天堂| 一本一道综合狠狠老| 国产午夜亚洲精品不卡| 天堂av在线一区| 欧美图区在线视频| 亚洲国产精品国自产拍av| 亚洲免费观看高清完整版在线| 国产一区二区精品久久99| 色欧美片视频在线观看在线视频| 欧美二区在线观看| 亚洲一区在线观看视频| 不卡的电影网站| 国产精品美女一区二区在线观看| 免费成人小视频| 欧美不卡激情三级在线观看| 五月婷婷综合激情| 欧美美女bb生活片| 亚洲夂夂婷婷色拍ww47| 欧美性极品少妇| 日韩福利视频导航| 日韩女同互慰一区二区| 精品午夜久久福利影院| 精品国产免费一区二区三区四区| 天天综合色天天| 久久蜜桃香蕉精品一区二区三区| 激情综合色综合久久综合| 久久综合色之久久综合| 精一区二区三区| 91色在线porny| 亚洲另类色综合网站| 欧美网站一区二区| 日韩va亚洲va欧美va久久| 久久久99免费| 国产乱一区二区| 国产色产综合产在线视频| 色嗨嗨av一区二区三区| 日韩影院在线观看| 亚洲欧洲成人精品av97| 欧美伦理电影网| 91视频一区二区| 国产麻豆视频一区二区| 一区二区三区四区在线播放| 欧美人与禽zozo性伦| 99精品久久免费看蜜臀剧情介绍| 日本一道高清亚洲日美韩| 国产精品色噜噜| 久久一区二区三区四区| 欧美老女人在线| 欧美日韩国产乱码电影| av亚洲精华国产精华精| 国产精品99久久久久久宅男| 亚洲成a人片在线不卡一二三区| 1024国产精品| 国产精品久久午夜| 久久夜色精品国产噜噜av| 91精品国产综合久久福利软件| av亚洲精华国产精华精华|