Class Locale
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Lang,
Message>
Represents loaded language information.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Locale
forLangCode
(LangCode code, PlanFiles files) static Locale
forLangCodeString
(PlanFiles files, String code) static Locale
String[]
String[]
getArray
(Lang key, Serializable... values) getNonDefault
(Object key) getString
(Lang key, Serializable... values) static String
getStringNullSafe
(Locale locale, Lang lang) int
hashCode()
void
loadFromAnotherLocale
(Locale locale) replaceLanguageInHtml
(String from) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
toString
-
Constructor Details
-
Locale
public Locale() -
Locale
-
-
Method Details
-
forLangCodeString
- Throws:
IOException
-
getStringNullSafe
-
forLangCode
- Throws:
IOException
-
fromFile
- Throws:
IOException
-
getLangCode
-
get
-
getNonDefault
-
getString
-
getString
-
getArray
-
getArray
-
loadFromAnotherLocale
-
replaceLanguageInHtml
-
replaceLanguageInJavascript
-
equals
-
hashCode
public int hashCode()
-