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

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

?? longlocaleconverter.java

?? 這是一個有關common beanutils 的源碼
?? JAVA
字號:
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You 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.apache.commons.beanutils.locale.converters;

import java.util.Locale;
import java.text.ParseException;


/**
 * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
 * implementation that converts an incoming
 * locale-sensitive String into a <code>java.lang.Long</code> object,
 * optionally using a default value or throwing a 
 * {@link org.apache.commons.beanutils.ConversionException}
 * if a conversion error occurs.</p>
 *
 * @author Yauheny Mikulski
 */

public class LongLocaleConverter extends DecimalLocaleConverter {


    // ----------------------------------------------------------- Constructors

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine and an unlocalized pattern is used
     * for the convertion.
     *
     */
    public LongLocaleConverter() {

        this(false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine.
     *
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(boolean locPattern) {

        this(Locale.getDefault(), locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param locale        The locale
     */
    public LongLocaleConverter(Locale locale) {

        this(locale, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs.
     *
     * @param locale        The locale
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(Locale locale, boolean locPattern) {

        this(locale, (String) null, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param locale        The locale
     * @param pattern       The convertion pattern
     */
    public LongLocaleConverter(Locale locale, String pattern) {

        this(locale, pattern, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs.
     *
     * @param locale        The locale
     * @param pattern       The convertion pattern
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(Locale locale, String pattern, boolean locPattern) {

        super(locale, pattern, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine and an unlocalized pattern is used
     * for the convertion.
     *
     * @param defaultValue  The default value to be returned
     */
    public LongLocaleConverter(Object defaultValue) {

        this(defaultValue, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine.
     *
     * @param defaultValue  The default value to be returned
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(Object defaultValue, boolean locPattern) {

        this(defaultValue, Locale.getDefault(), locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     */
    public LongLocaleConverter(Object defaultValue, Locale locale) {

        this(defaultValue, locale, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(Object defaultValue, Locale locale, boolean locPattern) {

        this(defaultValue, locale, null, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param pattern       The convertion pattern
     */
    public LongLocaleConverter(Object defaultValue, Locale locale, String pattern) {

        this(defaultValue, locale, pattern, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param pattern       The convertion pattern
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public LongLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern) {

        super(defaultValue, locale, pattern, locPattern);
    }

    /**
     * Convert the specified locale-sensitive input object into an output object of the
     * specified type. This method will return a Long type.
     *
     * @param value The input object to be converted
     * @param pattern The pattern is used for the convertion
     * @return The converted value
     *
     * @exception org.apache.commons.beanutils.ConversionException if conversion
     * cannot be performed successfully
     * @throws ParseException if an error occurs parsing a String to a Number
     */
    protected Object parse(Object value, String pattern) throws ParseException {

        Object result = super.parse(value, pattern);

        if (result == null || result instanceof Long) {
            return result;
        }

        return new Long(((Number)result).longValue());

    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区免费| 欧美性生活久久| 一区二区三区日韩欧美| 欧美精品一区男女天堂| 91视频一区二区三区| 久久国产成人午夜av影院| 亚洲三级在线观看| 欧美mv日韩mv国产网站| 欧美日韩亚洲丝袜制服| 99精品久久久久久| 国产精品一卡二卡| 免费观看久久久4p| 亚洲欧美日韩在线| 欧美高清在线视频| 欧美变态口味重另类| 欧洲日韩一区二区三区| 成人黄色av电影| 激情久久五月天| 日本欧美久久久久免费播放网| 亚洲女与黑人做爰| 国产精品美女www爽爽爽| 久久综合九色欧美综合狠狠| 5566中文字幕一区二区电影| 在线视频中文字幕一区二区| 99久久久国产精品| 从欧美一区二区三区| 国产电影一区二区三区| 捆绑调教美女网站视频一区| 首页亚洲欧美制服丝腿| 亚洲与欧洲av电影| 亚洲乱码国产乱码精品精可以看| 中文字幕成人在线观看| 国产精品色哟哟| 国产午夜一区二区三区| 久久精品视频在线免费观看| 久久精品人人做人人爽人人| 精品久久五月天| 欧美成人女星排行榜| 日韩欧美一区二区视频| 日韩三级视频在线观看| 欧美mv和日韩mv的网站| 欧美精品一区二区三区蜜桃视频| 欧美成人精品高清在线播放 | 成人黄色一级视频| 国产91丝袜在线18| 成人白浆超碰人人人人| www.亚洲免费av| 91在线观看下载| 色呦呦国产精品| 欧美日韩激情在线| 538在线一区二区精品国产| 欧美一区二视频| 精品国产青草久久久久福利| 欧美精品一区二区三区久久久| 久久久久久久av麻豆果冻| 日本一区二区三区国色天香| 国产精品色在线观看| 亚洲激情五月婷婷| 99国产精品视频免费观看| 97久久超碰国产精品| 欧洲一区二区三区在线| 欧美一区二区三区喷汁尤物| 久久久久久久久99精品| 中文字幕在线免费不卡| 亚洲主播在线播放| 毛片av一区二区| 成人免费毛片app| 在线观看日韩电影| 欧美一级夜夜爽| 国产亚洲女人久久久久毛片| 欧美国产1区2区| 性欧美疯狂xxxxbbbb| 激情偷乱视频一区二区三区| 91丨porny丨首页| 欧美精品亚洲一区二区在线播放| 久久亚洲一区二区三区明星换脸| 中文字幕一区二区5566日韩| 天天色图综合网| 高清不卡一区二区在线| 在线免费观看成人短视频| 日韩欧美精品三级| 亚洲欧美在线视频观看| 图片区小说区国产精品视频| 国产美女一区二区| 欧美午夜一区二区三区| 久久综合狠狠综合久久激情| 国产一区激情在线| 欧美伊人久久大香线蕉综合69 | 亚洲蜜臀av乱码久久精品蜜桃| 亚洲1区2区3区4区| 成人做爰69片免费看网站| 在线成人免费视频| 国产精品久久久爽爽爽麻豆色哟哟 | 日韩电影免费在线| 北岛玲一区二区三区四区| 日韩欧美激情在线| 亚洲一区二区三区美女| 成人免费毛片a| 欧美一区国产二区| 亚洲午夜日本在线观看| 国产98色在线|日韩| 日韩亚洲欧美中文三级| 一区二区三区精品在线| 国产精品正在播放| 欧美高清视频www夜色资源网| 国产精品久久久久三级| 久久超级碰视频| 欧美日韩高清一区二区三区| 中文字幕在线不卡视频| 国产成人一区在线| 精品理论电影在线| 男女男精品视频| 欧美美女一区二区三区| 一区二区三区欧美日| 成人午夜视频福利| 久久久久久99久久久精品网站| 日日夜夜免费精品| 欧美日韩综合在线| 一区二区三区欧美激情| 91色在线porny| 最近日韩中文字幕| 成人av资源站| 成人免费小视频| av在线综合网| 国产精品国产三级国产普通话99 | 99视频有精品| 国产区在线观看成人精品| 日本91福利区| 欧美成人精精品一区二区频| 日本欧美加勒比视频| 69精品人人人人| 日韩国产精品久久久| 欧美精品777| 日本视频免费一区| 日韩欧美一级二级三级| 久久99精品久久久久久久久久久久| 678五月天丁香亚洲综合网| 亚洲mv在线观看| 欧美高清视频一二三区| 蜜乳av一区二区| wwww国产精品欧美| 国产999精品久久久久久绿帽| 日本一区二区三区在线观看| 波多野结衣在线aⅴ中文字幕不卡| 国产精品私房写真福利视频| 福利一区福利二区| 日韩理论在线观看| 欧美亚洲国产怡红院影院| 亚洲国产精品影院| 欧美一级二级三级蜜桃| 国产精品资源在线| 最新成人av在线| 欧美美女一区二区在线观看| 免费观看久久久4p| 国产女主播视频一区二区| av电影天堂一区二区在线| 亚洲人成网站影音先锋播放| 欧美日韩一区二区在线观看| 青娱乐精品视频在线| 久久亚洲精品国产精品紫薇 | 7777精品伊人久久久大香线蕉 | 亚洲久草在线视频| 欧美私人免费视频| 日韩成人av影视| 久久久久国产精品人| 成人av片在线观看| 亚洲国产成人精品视频| 精品国产电影一区二区| 99视频精品在线| 免费高清在线视频一区·| 国产亲近乱来精品视频| 欧美综合亚洲图片综合区| 99久久国产综合精品女不卡| 亚洲一区视频在线| 精品国产自在久精品国产| 暴力调教一区二区三区| 日韩av一区二区在线影视| 国产欧美视频在线观看| 欧美三级在线看| 国产乱淫av一区二区三区 | 亚洲精选视频在线| 日韩免费观看2025年上映的电影| 国产xxx精品视频大全| 一区二区三区在线视频播放| 精品粉嫩超白一线天av| 91国产福利在线| 国产精一区二区三区| 亚洲自拍偷拍综合| 国产农村妇女毛片精品久久麻豆 | 日韩毛片高清在线播放| 日韩欧美一区二区免费| 色哟哟国产精品免费观看| 久久国产尿小便嘘嘘| 亚洲精品伦理在线| 久久综合资源网| 在线播放视频一区| 在线看国产一区二区| 成人小视频在线观看| 久久99精品国产91久久来源 | 成人性视频免费网站|