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

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

?? configuration.java

?? velocity 的腳本語言的全部代碼集合
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
     * 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)
    {
        Object value = get(key);

        if (value instanceof Short)
        {
            return (Short) value;
        }
        else if (value instanceof String)
        {
            Short s = new Short((String) value);
            put(key, s);
            return s;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getShort(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Short object");
        }
    }

    /**
     * The purpose of this method is to get the configuration resource
     * with the given name as an integer.
     *
     * @param name The resource name.
     * @return The value of the resource as an integer.
     */
    public int getInt(String name)
    {
        return getInteger(name);
    }

    /**
     * The purpose of this method is to get the configuration resource
     * with the given name as an integer, or a default value.
     *
     * @param name The resource name
     * @param def The default value of the resource.
     * @return The value of the resource as an integer.
     */
    public int getInt(String name,
                      int def)
    {
        return getInteger(name, def);
    }

    /**
     * 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 getInteger(String key)
    {
        Integer i = getInteger(key, null);
        if (i != null)
        {
            return i.intValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * 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 getInteger(String key,
                          int defaultValue)
    {    
        Integer i = getInteger(key, null);
        
        if (i == null)
        {
            return defaultValue;
        }
        
        return i.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)
    {
        Object value = get(key);

        if (value instanceof Integer)
        {
            return (Integer) value;
        }
        else if (value instanceof String)
        {
            Integer i = new Integer((String) value);
            put(key, i);
            return i;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getInteger(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Integer object");
        }
    }

    /**
     * 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)
    {
        Long l = getLong(key, null);
        if (l != null)
        {
            return l.longValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * 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)
    {
        Object value = get(key);

        if (value instanceof Long)
        {
            return (Long) value;
        }
        else if (value instanceof String)
        {
            Long l = new Long((String) value);
            put(key, l);
            return l;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getLong(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Long object");
        }
    }

    /**
     * Get a float associated with the given configuration key.
     *
     * @param key The configuration key.
     * @return The associated float.
     * @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 Float.
     * @exception NumberFormatException is thrown if the value mapped
     * by the key has not a valid number format.
     */
    public float getFloat(String key)
    {
        Float f = getFloat(key, null);
        if (f != null)
        {
            return f.floatValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * 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)
    {
        Object value = get(key);

        if (value instanceof Float)
        {
            return (Float) value;
        }
        else if (value instanceof String)
        {
            Float f = new Float((String) value);
            put(key, f);
            return f;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getFloat(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Float object");
        }
    }

    /**
     * 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)
    {
        Double d = getDouble(key, null);
        if (d != null)
        {
            return d.doubleValue();
        }
        else
        {
            throw new NoSuchElementException(
                '\'' + key + "' doesn't map to an existing object");
        }
    }

    /**
     * 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)
    {
        Object value = get(key);

        if (value instanceof Double)
        {
            return (Double) value;
        }
        else if (value instanceof String)
        {
            Double d = new Double((String) value);
            put(key, d);
            return d;
        }
        else if (value == null)
        {
            if (defaults != null)
            {
                return defaults.getDouble(key, defaultValue);
            }
            else
            {
                return defaultValue;
            }
        }
        else
        {
            throw new ClassCastException(
                '\'' + key + "' doesn't map to a Double object");
        }
    }

    /**
     * Convert a standard properties class into a configuration
     * class.
     *
     * @param Properties properties object to convert into
     *                   a Configuration object.
     *
     * @return Configuration configuration created from the
     *                      properties object.
     */
    public static Configuration convertProperties(Properties p)
    {
        Configuration c = new Configuration();
    
        for (Enumeration e = p.keys(); e.hasMoreElements() ; ) 
        {
            String s = (String) e.nextElement();
            c.setProperty(s, p.getProperty(s));
        }
    
        return c;
    }

    /**
     *  <p>
     *  Routine intended for deprecation period only
     *  as we switch from using the Configuration
     *  class in Velocity to the Jakarta Commons
     *  ExtendedProperties
     *  </p>
     *  <p>
     *  Do not use this for general use. It will disappear
     * </p>
     *  @return ExtendedProperties containing data of Configuration
     *  
     *  @deprecated Do not use.  For deprecation assistance only.
     */
    public ExtendedProperties getExtendedProperties() 
    {
        return deprecationCrutch; 
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美电影一区| 国产精品免费av| 国产制服丝袜一区| 久久亚洲精品国产精品紫薇| 国产精品亚洲成人| 亚洲欧洲国产专区| 欧美亚洲一区三区| 日本午夜一本久久久综合| 欧美成人aa大片| 成人精品gif动图一区| 亚洲乱码国产乱码精品精的特点| 欧美最新大片在线看| 日本伊人色综合网| 国产一区二区伦理| 国产精品理论片| 91成人看片片| 麻豆一区二区在线| 国产精品无圣光一区二区| 在线一区二区三区| 久久精品72免费观看| 国产精品素人视频| 欧美视频在线观看一区| 激情综合一区二区三区| 亚洲欧洲一区二区三区| 7777精品伊人久久久大香线蕉超级流畅 | 加勒比av一区二区| 亚洲欧美在线高清| 欧美一区午夜视频在线观看| 国产成人在线影院| 亚洲一区二区三区中文字幕| 欧美精品一区二区三| 91美女视频网站| 另类综合日韩欧美亚洲| 国产精品久久毛片av大全日韩| 欧美日韩国产电影| 国产激情精品久久久第一区二区 | 国产精品视频看| 欧美日韩国产综合一区二区| 国产黄色精品网站| 亚洲成人第一页| 国产视频视频一区| 欧美另类久久久品| 成人性生交大片| 日韩精品欧美精品| 日韩毛片视频在线看| 另类的小说在线视频另类成人小视频在线 | 麻豆91在线播放| 亚洲色图制服诱惑 | 国内外成人在线| 一区二区三区丝袜| 久久精品无码一区二区三区 | 日本丶国产丶欧美色综合| 狠狠色丁香久久婷婷综合_中| 一区二区三区精品视频| 久久久久久久久伊人| 欧美人体做爰大胆视频| 成人激情小说网站| 久久99久久99精品免视看婷婷 | 99re热这里只有精品视频| 日韩av午夜在线观看| ㊣最新国产の精品bt伙计久久| 欧美不卡激情三级在线观看| 欧美性猛交xxxxxxxx| 成人免费毛片aaaaa**| 日韩免费观看高清完整版在线观看| 91年精品国产| 国产福利一区二区三区视频在线| 天堂久久久久va久久久久| 亚洲视频一区在线观看| 国产视频在线观看一区二区三区| 日韩一区二区免费高清| 欧美亚洲尤物久久| 97久久精品人人做人人爽| 国产乱码精品一区二区三区av | 久久午夜电影网| 91精品国产综合久久久久| 在线日韩国产精品| 成人av动漫在线| 国产成人午夜电影网| 麻豆视频一区二区| 石原莉奈在线亚洲二区| 一区二区三区成人在线视频 | 久久久久成人黄色影片| 欧美一区二区女人| 欧美日韩成人在线| 欧美网站大全在线观看| 色综合咪咪久久| av一二三不卡影片| 成人性视频免费网站| 久久久久国产精品麻豆ai换脸| 日韩视频在线永久播放| 欧美一区二区三区成人| 欧美精品在线一区二区三区| 欧美系列亚洲系列| 欧美影院午夜播放| 色噜噜狠狠一区二区三区果冻| 99精品国产91久久久久久| 成年人国产精品| 成人免费看黄yyy456| 国产成人三级在线观看| 国产精品综合二区| 国产精品一区二区在线播放| 久久9热精品视频| 美女一区二区视频| 蜜臀av一区二区在线免费观看 | 欧美性一二三区| 欧美专区日韩专区| 欧美性色欧美a在线播放| 欧美影视一区在线| 欧美午夜理伦三级在线观看| 欧美手机在线视频| 欧美美女黄视频| 欧美一区二区三区免费在线看| 这里是久久伊人| 日韩欧美的一区| 久久午夜电影网| av亚洲精华国产精华精华 | 成人免费不卡视频| 成人av小说网| 色88888久久久久久影院野外 | 精品久久久久久亚洲综合网| 精品国产精品一区二区夜夜嗨| 久久先锋资源网| 国产精品网站在线观看| 亚洲三级久久久| 亚洲gay无套男同| 人人超碰91尤物精品国产| 久久aⅴ国产欧美74aaa| 国产成人精品亚洲777人妖| 99麻豆久久久国产精品免费优播| 色噜噜久久综合| 欧美一区二区三区免费大片| 久久午夜色播影院免费高清| 亚洲欧洲日韩在线| 亚洲第一成年网| 蜜桃免费网站一区二区三区| 国产精品亚洲一区二区三区在线| 99久久婷婷国产| 欧美日韩久久一区二区| 精品国精品自拍自在线| 国产农村妇女精品| 一区二区三区在线免费视频| 日韩av一区二| 成人一级黄色片| 精品视频一区 二区 三区| 欧美一级xxx| 国产精品天干天干在观线 | 中文字幕国产一区| 国产欧美一区二区三区鸳鸯浴| 中文字幕免费一区| 一区二区三区av电影| 日本不卡高清视频| 风间由美性色一区二区三区| 亚洲欧洲制服丝袜| 日韩精品1区2区3区| 国内成+人亚洲+欧美+综合在线| 99久久婷婷国产综合精品| 欧美高清视频一二三区 | 9久草视频在线视频精品| 欧美色成人综合| 精品国产污污免费网站入口| 亚洲欧美在线aaa| 日韩电影一区二区三区四区| 成人中文字幕电影| 欧美日韩在线三级| 国产午夜精品理论片a级大结局| 夜夜精品视频一区二区| 狠狠色狠狠色综合日日91app| 色美美综合视频| 精品动漫一区二区三区在线观看| 亚洲欧美二区三区| 久久9热精品视频| 色播五月激情综合网| 久久综合中文字幕| 亚洲综合丝袜美腿| 国产精品一区二区免费不卡| 欧美色综合网站| 国产欧美一区二区精品秋霞影院 | 韩日av一区二区| 在线欧美日韩精品| 久久精品综合网| 五月天国产精品| 99久久综合99久久综合网站| 亚洲成人福利片| 国产剧情在线观看一区二区| 欧美性生活大片视频| 欧美国产一区在线| 麻豆传媒一区二区三区| 欧美最新大片在线看| 中文子幕无线码一区tr| 老司机精品视频线观看86| 91网址在线看| 国产三级精品视频| 免费欧美日韩国产三级电影| 91国产免费看| www.一区二区| 久久久久国产精品厨房| 热久久免费视频| 欧美男男青年gay1069videost| 中文一区二区在线观看|