com.baidu.unbiz.fluentvalidator.util
类 LocaleUtil

java.lang.Object
  继承者 com.baidu.unbiz.fluentvalidator.util.LocaleUtil

public class LocaleUtil
extends Object

语言地区工具类

作者:
zhangxu

构造方法摘要
LocaleUtil()
           
 
方法摘要
static Locale parseLocale(String localeString)
          解析locale字符串。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LocaleUtil

public LocaleUtil()
方法详细信息

parseLocale

public static Locale parseLocale(String localeString)
解析locale字符串。

Locale字符串是符合下列格式:language_country_variant

参数:
localeString - 要解析的字符串
返回:
Locale对象,如果locale字符串为空,则返回null


Copyright © 2015–2017 neoremind. All rights reserved.