public static final class I18nString.Builder extends Object
| Constructor and Description |
|---|
Builder() |
Builder(I18nString toCopy) |
Builder(String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
I18nString.Builder |
anyLanguage(String value)
Add string to use as a default value, when there is no translation to some language
|
I18nString |
build() |
I18nString.Builder |
put(Locale locale,
String value)
Add string translated into another language.
|
I18nString.Builder |
put(String languageCode,
String value)
Add string translated into another language.
|
public Builder()
public Builder(String defaultValue)
public Builder(I18nString toCopy)
public I18nString.Builder put(String languageCode, String value)
languageCode - language name in ISO 639-2 format.
If is null, this method does nothing.value - translated into provided language.
If is null, this method does nothing.I18nString.Builder instancepublic I18nString.Builder put(Locale locale, String value)
locale - its Locale.getISO3Language() stands for the language of the string.
If is null, this method does nothing.value - string translated into provided language.
If is null, this method does nothing.I18nString.Builder instancepublic I18nString.Builder anyLanguage(String value)
value - default string value
If is null, this method does nothing.I18nString.Builder instancepublic I18nString build()
I18nString instance