Class TranslationMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<Locale,String>
com.inductiveautomation.ignition.common.i18n.translation.TranslationMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Locale,
String>
Holds all of the translations for a specific key.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
merge
(TranslationMap other) Merges the translations from the provided map into this one, returning a new map as the result.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TranslationMap
-
TranslationMap
-
-
Method Details
-
getKey
-
merge
Merges the translations from the provided map into this one, returning a new map as the result. Preference is given to the incoming map, so if a locale exists in both, the translation from incoming will be used.If other is null, the return will simply be "this".
-