Class TranslationMap
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<java.util.Locale,java.lang.String>
- 
- com.inductiveautomation.ignition.common.i18n.translation.TranslationMap
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.util.Map<java.util.Locale,java.lang.String>
 
 public class TranslationMap extends java.util.HashMap<java.util.Locale,java.lang.String>Holds all of the translations for a specific key.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description TranslationMap(TranslationMap other)TranslationMap(java.lang.String key)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()TranslationMapmerge(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, values
 
- 
 
- 
- 
- 
Constructor Detail- 
TranslationMappublic TranslationMap(TranslationMap other) 
 - 
TranslationMappublic TranslationMap(java.lang.String key) 
 
- 
 - 
Method Detail- 
getKeypublic java.lang.String getKey() 
 - 
mergepublic TranslationMap merge(TranslationMap other) 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". 
 
- 
 
-