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

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

?? compositeconfiguration.java

?? java servlet著名論壇源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * Get a byte associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated byte if key is found and has valid format, default
     *         value otherwise.
     * @exception ClassCastException is thrown if the key maps to an object that
     *            is not a Byte.
     * @exception NumberFormatException is thrown if the value mapped by the key
     *            has not a valid number format.
     */
    public Byte getByte(String key, Byte defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getByte(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a double associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated double.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Double.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public double getDouble(String key)
    {
        return getFirstMatchingConfig(key).getDouble(key);
    }
    /**
     * Get a double associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated double.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Double.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public double getDouble(String key, double defaultValue)
    {
        return getDouble(key, new Double(defaultValue)).doubleValue();
    }
    /**
     * Get a double associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated double if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Double.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public Double getDouble(String key, Double defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getDouble(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a float associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated float.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Float.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public float getFloat(String key, float defaultValue)
    {
        return getFloat(key, new Float(defaultValue)).floatValue();
    }
    /**
     * Get a float associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated float if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Float.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public Float getFloat(String key, Float defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getFloat(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a int associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated int.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Integer.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public int getInt(String key)
    {
        return getFirstMatchingConfig(key).getInt(key);
    }
    /**
     * Get a int associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated int.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Integer.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public int getInt(String key, int defaultValue)
    {
        return getInteger(key, new Integer(defaultValue)).intValue();
    }
    /**
     * Get a int associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated int if key is found and has valid format, default
     *         value otherwise.
     * @exception ClassCastException is thrown if the key maps to an object that
     *         is not a Integer.
     * @exception NumberFormatException is thrown if the value mapped by the key
     *         has not a valid number format.
     */
    public Integer getInteger(String key, Integer defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getInteger(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a long associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated long.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Long.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public long getLong(String key)
    {
        return getFirstMatchingConfig(key).getLong(key);
    }
    /**
     * Get a long associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated long.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Long.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public long getLong(String key, long defaultValue)
    {
        return getLong(key, new Long(defaultValue)).longValue();
    }
    /**
     * Get a long associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated long if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Long.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public Long getLong(String key, Long defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getLong(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated short.
     * @exception NoSuchElementException is thrown if the key doesn't
     * map to an existing object.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Short.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public short getShort(String key)
    {
        return getFirstMatchingConfig(key).getShort(key);
    }
    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated short.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Short.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public short getShort(String key, short defaultValue)
    {
        return getShort(key, new Short(defaultValue)).shortValue();
    }
    /**
     * Get a short associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated short if key is found and has valid
     * format, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Short.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public Short getShort(String key, Short defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getShort(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get a string associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated string.
     * @exception ClassCastException is thrown if the key maps to an object that
     *            is not a String.
     */
    public String getString(String key)
    {
        return getString(key, null);
    }
    /**
     * Get a string associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated string if key is found, default value otherwise.
     * @exception ClassCastException is thrown if the key maps to an object that
     *            is not a String.
     */
    public String getString(String key, String defaultValue)
    {
        try
        {
            return getFirstMatchingConfig(key).getString(key, defaultValue);
        }
        catch (NoSuchElementException nsee)
        {
            return defaultValue;
        }
    }
    /**
     * Get an array of strings associated with the given configuration
     * key.
     *
     * @param key The configuration key.
     * @return The associated string array if key is found.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a String/Vector of Strings.
     */
    public String[] getStringArray(String key)
    {
        Vector v = getVector(key);
        return (String []) v.toArray(new String [0]);
    }

    /**
     * Get a Vector of strings associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated Vector.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Vector.
     */
    public Vector getVector(String key)
    {
        Vector v = new Vector();

        for (ListIterator li = configList.listIterator(); li.hasNext();)
        {
            Configuration config = (Configuration) li.next();
            if (config.containsKey(key))
            {
                v.addAll(config.getVector(key));
            }
        }

        return v;
    }

    /**
     * Get a Vector of strings associated with the given configuration key.
     *
     * @param key The configuration key.
     * @param defaultValue The default value.
     * @return The associated Vector.
     * @exception ClassCastException is thrown if the key maps to an
     * object that is not a Vector.
     */
    public Vector getVector(String key, Vector defaultValue)
    {
        Vector v = getVector(key);

        return (v.size() == 0) ? defaultValue : v;
    }

    private Configuration getFirstMatchingConfig(String key)
    {
        for (ListIterator i = configList.listIterator(); i.hasNext();)
        {
            Configuration config = (Configuration) i.next();
            if (config.containsKey(key))
            {
                return config;
            }
        }
        throw new NoSuchElementException(
            '\'' + key + "' doesn't map to an existing object");
    }

    public Configuration getConfiguration(int index)
    {
        return (Configuration) configList.get(index);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产喂奶挤奶一区二区三区| 日韩三级.com| 国产一区二区精品久久| 日本人妖一区二区| 天堂一区二区在线免费观看| 亚洲二区在线观看| 天堂一区二区在线| 日韩一区精品视频| 日本特黄久久久高潮| 免费欧美高清视频| 国产一区二区三区高清播放| 国产麻豆精品theporn| 成人免费视频一区二区| 91网站黄www| 欧美精品日韩综合在线| 欧美一区二区久久久| 337p日本欧洲亚洲大胆色噜噜| 久久久久国色av免费看影院| 国产亚洲制服色| 亚洲免费av高清| 亚洲成人动漫一区| 六月丁香婷婷色狠狠久久| 国产激情精品久久久第一区二区 | 国产精品自拍毛片| 国产精品一区二区三区四区| av电影天堂一区二区在线| 色综合久久综合| 3d成人h动漫网站入口| 久久久亚洲午夜电影| 日韩伦理免费电影| 婷婷久久综合九色综合伊人色| 另类小说综合欧美亚洲| 波多野结衣一区二区三区| 欧美日韩专区在线| 久久精品欧美日韩精品| 亚洲国产一区二区视频| 国产福利一区二区三区| 在线亚洲一区观看| 久久美女艺术照精彩视频福利播放| 亚洲人精品午夜| 黄色资源网久久资源365| 在线视频你懂得一区| 久久精品网站免费观看| 五月天激情综合| 91麻豆精品秘密| 国产欧美一区二区三区在线老狼| 亚洲精品欧美在线| www.av精品| 国产午夜亚洲精品午夜鲁丝片| 丝袜a∨在线一区二区三区不卡| 成人美女视频在线观看18| 欧美一区二区视频网站| 亚洲精品伦理在线| 成人精品小蝌蚪| 久久久久久久精| 天堂一区二区在线| 欧美性受xxxx| 一区二区在线观看免费| 不卡的电影网站| 久久综合久久综合九色| 日本视频在线一区| 欧美精品国产精品| 亚洲成人免费av| 欧洲亚洲国产日韩| 亚洲一区二区欧美| 91成人在线观看喷潮| 日韩美女视频一区| 91欧美一区二区| 日韩伦理免费电影| 91影院在线观看| 亚洲人精品一区| 一本一道波多野结衣一区二区| 亚洲国产精品国自产拍av| 久久不见久久见免费视频7| 日韩一区二区影院| 美女视频黄 久久| 日韩一级黄色大片| 久久精品国产**网站演员| 欧美一级欧美三级| 久久99精品久久久久久国产越南 | 国产精品久久毛片av大全日韩| 精品亚洲成av人在线观看| 精品国产乱码久久久久久图片 | 亚洲欧美日韩在线不卡| 99热这里都是精品| 亚洲综合一区二区三区| 91精品欧美综合在线观看最新 | 91捆绑美女网站| 一区二区三区在线观看欧美| 色哟哟国产精品免费观看| 亚洲一线二线三线视频| 欧美日韩国产在线播放网站| 青青草国产成人99久久| 日韩视频123| 国产伦精品一区二区三区视频青涩| 欧美国产禁国产网站cc| 91天堂素人约啪| 亚洲国产美国国产综合一区二区| 7777精品伊人久久久大香线蕉的 | 奇米色一区二区| 精品国产乱码久久久久久图片 | 91网上在线视频| 亚洲国产精品久久人人爱蜜臀 | 亚洲午夜电影网| 欧美tk—视频vk| av电影一区二区| 日本成人中文字幕| 中文字幕亚洲电影| 欧美久久久久久久久中文字幕| 狠狠色丁香婷婷综合久久片| 国产精品美女久久久久久久| 欧美日韩国产片| 成人avav影音| 青青草国产精品亚洲专区无| 日本一区二区三区免费乱视频 | 中文字幕一区二区三区四区| 欧洲精品视频在线观看| 国产精一品亚洲二区在线视频| 一区二区三区小说| 久久九九影视网| 777色狠狠一区二区三区| k8久久久一区二区三区| 美女视频黄a大片欧美| 一片黄亚洲嫩模| 国产精品久久久久7777按摩| 日韩欧美在线影院| 欧洲一区二区三区免费视频| 成人性生交大片免费看中文网站| 午夜电影网一区| 亚洲精品国产精华液| 欧美国产一区在线| 久久综合999| 日韩欧美一区二区久久婷婷| 色菇凉天天综合网| 99久久精品国产精品久久| 国产中文一区二区三区| 免费亚洲电影在线| 免费成人你懂的| 亚洲va国产va欧美va观看| 亚洲欧洲中文日韩久久av乱码| 国产亚洲一区二区三区在线观看 | 亚洲动漫第一页| 久久亚洲综合色| 欧美一区二区精品在线| 欧美精品乱人伦久久久久久| 91在线观看一区二区| 盗摄精品av一区二区三区| 国产精品一区2区| 国产精品影视在线| 国产福利精品导航| 国产成人在线视频免费播放| 韩日av一区二区| 国产精品白丝jk黑袜喷水| 国产一区二区三区高清播放| 国产精品一二三四五| 蜜桃视频一区二区| 老司机免费视频一区二区三区| 理论电影国产精品| 国产麻豆9l精品三级站| 国产91精品一区二区麻豆亚洲| 成人黄色在线视频| 91国产视频在线观看| 欧美日韩中文字幕一区| 日韩久久久久久| 国产亚洲午夜高清国产拍精品 | 丝袜美腿亚洲一区二区图片| 午夜精品影院在线观看| 免费人成在线不卡| 国产成人精品影视| av在线播放不卡| 欧美三区在线观看| 欧美成人艳星乳罩| 国产精品色在线| 亚洲午夜av在线| 久久99国产精品成人| 成人一区二区三区中文字幕| 色综合天天综合在线视频| 7777精品久久久大香线蕉| 精品国产乱码久久| 日本一区二区电影| 亚洲成人手机在线| 国产精品99久久久久久久vr| 菠萝蜜视频在线观看一区| 欧美午夜精品一区二区蜜桃| 日韩精品最新网址| 亚洲欧美激情在线| 国产在线不卡一区| 色综合久久久久综合体桃花网| 欧美狂野另类xxxxoooo| 国产女人aaa级久久久级| 亚洲成人自拍网| 国产寡妇亲子伦一区二区| 91麻豆福利精品推荐| 欧美不卡一区二区| 一级日本不卡的影视| 国产69精品一区二区亚洲孕妇| 欧美日韩视频在线第一区| 国产欧美日韩麻豆91| 青青草97国产精品免费观看无弹窗版| 国产精品一区久久久久|