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()
I18NStringtoString in interface I18NStringtoString in class Objectpublic String toString(Locale locale)
I18NStringtoString in interface I18NStringlocale - Wanted localeCopyright © 2019. All rights reserved.