public class StringI18n extends Object implements Serializable
| 构造器和说明 |
|---|
StringI18n() |
StringI18n(String defaultValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDefaultValue() |
Map<String,String> |
getI18nValue() |
String |
getLocalizedValue(String locale)
get localized value by locale
|
void |
setDefaultValue(String defaultValue) |
void |
setI18nValue(Map<String,String> i18nValue) |
void |
setLocalizedValue(String locale,
String localizedValue)
put localized value
|
String |
toString() |
public StringI18n()
public StringI18n(String defaultValue)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getLocalizedValue(String locale)
locale - a string representation of LOCALE.
You can use Locale.XXXXX.toString() to get string representation of the locale,
such as Locale.US.toString(), Locale.SIMPLIFIED_CHINESE.toString(), etcpublic void setLocalizedValue(String locale, String localizedValue)
locale - a string representation of LOCALE.
You can use Locale.XXXXX.toString() to get string representation of the locale,
such as Locale.US.toString(), Locale.SIMPLIFIED_CHINESE.toString(), etclocalizedValue - Copyright © 2019. All rights reserved.