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>

public class TranslationMap extends HashMap<Locale,String>
Holds all of the translations for a specific key.
See Also:
  • Constructor Details

    • TranslationMap

      public TranslationMap(TranslationMap other)
    • TranslationMap

      public TranslationMap(String key)
  • Method Details

    • getKey

      public String getKey()
    • merge

      public 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".