public class Locale extends java.util.HashMap<Lang,Message>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Locale |
forLangCode(LangCode code,
PlanFiles files) |
static Locale |
forLangCodeString(PlanFiles files,
java.lang.String code) |
static Locale |
fromFile(java.io.File file) |
Message |
get(java.lang.Object key) |
java.lang.String[] |
getArray(Lang key) |
java.lang.String[] |
getArray(Lang key,
java.io.Serializable... values) |
LangCode |
getLangCode() |
java.util.Optional<Message> |
getNonDefault(java.lang.Object key) |
java.lang.String |
getString(Lang key) |
java.lang.String |
getString(Lang key,
java.io.Serializable... values) |
int |
hashCode() |
void |
loadFromAnotherLocale(Locale locale) |
java.lang.String |
replaceLanguageInHtml(java.lang.String from) |
java.lang.String |
replaceLanguageInJavascript(java.lang.String from) |
public Locale()
public Locale(LangCode langCode)
public static Locale forLangCodeString(PlanFiles files, java.lang.String code) throws java.io.IOException
java.io.IOException
public static Locale forLangCode(LangCode code, PlanFiles files) throws java.io.IOException
java.io.IOException
public static Locale fromFile(java.io.File file) throws java.io.IOException
java.io.IOException
public LangCode getLangCode()
public Message get(java.lang.Object key)
public java.util.Optional<Message> getNonDefault(java.lang.Object key)
public java.lang.String getString(Lang key)
public java.lang.String getString(Lang key, java.io.Serializable... values)
public java.lang.String[] getArray(Lang key)
public java.lang.String[] getArray(Lang key, java.io.Serializable... values)
public void loadFromAnotherLocale(Locale locale)
public java.lang.String replaceLanguageInHtml(java.lang.String from)
public java.lang.String replaceLanguageInJavascript(java.lang.String from)
public boolean equals(java.lang.Object o)