Package com.alibaba.citrus.service.requestcontext.util

Examples of com.alibaba.citrus.service.requestcontext.util.ValueList


     *
     * @param key 参数名
     * @return 参数值
     */
    public long getLong(String key) {
        ValueList container = getValueList(key, false);
        return container == null ? 0 : container.getLongValue();
    }
View Full Code Here


     * @param key          参数名
     * @param defaultValue 默认值
     * @return 参数值
     */
    public long getLong(String key, long defaultValue) {
        ValueList container = getValueList(key, false);
        return container == null ? defaultValue : container.getLongValue(defaultValue);
    }
View Full Code Here

     *
     * @param key 参数名
     * @return 参数值的数组
     */
    public long[] getLongs(String key) {
        ValueList container = getValueList(key, false);
        return container == null ? EMPTY_LONG_ARRAY : container.getLongValues();
    }
View Full Code Here

     * @param key          参数名
     * @param defaultValue 默认值
     * @return 参数值的数组
     */
    public long[] getLongs(String key, long[] defaultValue) {
        ValueList container = getValueList(key, false);
        return container == null ? defaultValue : container.getLongValues(defaultValue);
    }
View Full Code Here

     *
     * @param key 参数名
     * @return 参数值
     */
    public short getShort(String key) {
        ValueList container = getValueList(key, false);
        return container == null ? 0 : container.getShortValue();
    }
View Full Code Here

     * @param key          参数名
     * @param defaultValue 默认值
     * @return 参数值
     */
    public short getShort(String key, short defaultValue) {
        ValueList container = getValueList(key, false);
        return container == null ? defaultValue : container.getShortValue(defaultValue);
    }
View Full Code Here

     *
     * @param key 参数名
     * @return 参数值
     */
    public String getString(String key) {
        ValueList container = getValueList(key, false);
        return container == null ? null : container.getStringValue();
    }
View Full Code Here

     * @param key          参数名
     * @param defaultValue 默认值
     * @return 参数值
     */
    public String getString(String key, String defaultValue) {
        ValueList container = getValueList(key, false);
        return container == null ? defaultValue : container.getStringValue(defaultValue);
    }
View Full Code Here

     *
     * @param key 参数名
     * @return 参数值的数组
     */
    public String[] getStrings(String key) {
        ValueList container = getValueList(key, false);
        return container == null ? EMPTY_STRING_ARRAY : container.getStringValues();
    }
View Full Code Here

     * @param key          参数名
     * @param defaultValue 默认值
     * @return 参数值的数组
     */
    public String[] getStrings(String key, String[] defaultValue) {
        ValueList container = getValueList(key, false);
        return container == null ? defaultValue : container.getStringValues(defaultValue);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.requestcontext.util.ValueList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.