Package org.projecthusky.common.utils
Class LangText
java.lang.Object
org.projecthusky.common.utils.LangText
- All Implemented Interfaces:
Serializable
A simple combination of text and its language code (used for translations in
different languages)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLangText()
Instantiates a new lang text.LangText
(LanguageCode lang, String text) Instantiates class -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether the two objects are equal (based on their content). Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt).Returns the language of the textReturns the textint
hashCode()
void
setLangCode
(LanguageCode langCode) void
setLangText
(String langText)
-
Constructor Details
-
LangText
public LangText()Instantiates a new lang text. Default constructor. -
LangText
Instantiates class- Parameters:
lang
- the languagetext
- the text
-
-
Method Details
-
equals
Checks whether the two objects are equal (based on their content).Prüft, ob die beiden Objekte gleich sind (basierend auf ihrem Inhalt). -
getLangCode
Returns the language of the text- Returns:
- the langCode the language
-
getLangText
Returns the text- Returns:
- the langText the text
-
hashCode
public int hashCode() -
setLangCode
-
setLangText
-