Interface LocalizedValue<K,V>

Type Parameters:
K - key type
V - value type

public interface LocalizedValue<K,V>
localized text definition.
Author:
Manfred Tremmel
  • Method Details

    • setLocalizedText

      void setLocalizedText(Map<K,V> localizedText)
      set localized text.
      Parameters:
      localizedText - map of localized texts
    • putLocalizedText

      void putLocalizedText(K language, V text)
      add or update a text for the given language.
      Parameters:
      language - the language for the text
      text - localized text
    • getLocalizedText

      Map<K,V> getLocalizedText()
      get map of localized texts.
      Returns:
      map with languages and corresponding texts
    • getLocalizedText

      V getLocalizedText(K language)
      get localized text for specific language.
      Parameters:
      language - language for which the text should be retuned
      Returns:
      text for the language or zero