Class LangText

java.lang.Object
org.projecthusky.common.utils.LangText
All Implemented Interfaces:
Serializable

public class LangText extends Object implements Serializable
A simple combination of text and its language code (used for translations in different languages)
See Also:
  • Constructor Details

    • LangText

      public LangText()
      Instantiates a new lang text. Default constructor.
    • LangText

      public LangText(LanguageCode lang, String text)
      Instantiates class
      Parameters:
      lang - the language
      text - the text
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks whether the two objects are equal (based on their content).
      Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).
      Overrides:
      equals in class Object
      Parameters:
      obj - the ValueSetPackage to compare
      Returns:
      true, if equal; false otherwise.
    • getLangCode

      public LanguageCode getLangCode()
      Returns the language of the text
      Returns:
      the langCode the language
    • getLangText

      public String getLangText()
      Returns the text
      Returns:
      the langText the text
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setLangCode

      public void setLangCode(LanguageCode langCode)
    • setLangText

      public void setLangText(String langText)