类 StringToLocaleConverter

java.lang.Object
cn.taketoday.core.conversion.support.StringToLocaleConverter
所有已实现的接口:
Converter<String,Locale>

final class StringToLocaleConverter extends Object implements Converter<String,Locale>
Converts from a String to a Locale.

Accepts the classic Locale String format (Locale.toString()) as well as BCP 47 language tags (Locale.forLanguageTag(java.lang.String) on Java 7+).

从以下版本开始:
3.0
作者:
Keith Donald, Juergen Hoeller
另请参阅:
  • 构造器详细资料

    • StringToLocaleConverter

      StringToLocaleConverter()
  • 方法详细资料

    • convert

      @Nullable public Locale convert(String source)
      从接口复制的说明: Converter
      Convert the source object of type S to target type T.
      指定者:
      convert 在接口中 Converter<String,Locale>
      参数:
      source - the source object to convert, which must be an instance of S (never null)
      返回:
      the converted object, which must be an instance of T (potentially null)