public class TranslatedString extends Object implements I18NString, Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
static I18NString |
getI18NString(Map<String,String> translations)
Gets an interned I18NString.
|
Collection<String> |
getLanguages() |
List<Map.Entry<String,String>> |
getTranslations() |
String |
toString()
Returns default translation (english)
|
String |
toString(Locale locale)
Returns wanted translation
|
public static I18NString getI18NString(Map<String,String> translations)
translations
- A Map of languages and translations, a null language is the default translationpublic Collection<String> getLanguages()
public List<Map.Entry<String,String>> getTranslations()
public String toString()
I18NString
toString
in interface I18NString
toString
in class Object
public String toString(Locale locale)
I18NString
toString
in interface I18NString
locale
- Wanted localeCopyright © 2018. All rights reserved.