Class TranslationMap
java.lang.Object
java.util.AbstractMap<Locale,String>
java.util.HashMap<Locale, @Nullable String>
com.inductiveautomation.ignition.common.i18n.translation.TranslationMap
- All Implemented Interfaces:
Serializable, Cloneable, Map<Locale,String>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()merge(@Nullable TranslationMap other) Merges the translations from the provided map into this one, returning a new map as the result.Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class 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".
-