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 SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, toString
- 
Constructor Details- 
TranslationMap
- 
TranslationMap
 
- 
- 
Method Details- 
getKey
- 
mergeMerges 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". 
 
-