Class LangConverter
- java.lang.Object
-
- net.thexcoders.aladin_bot_backend.converters.LangConverter
-
public class LangConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description LangConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Categorizer.LanguagecodeToLangConverter(int code)Converting the Language from code toCategorizer.Languagestatic intlangToCodeConverter(String lang)Converting the Language from String to Integer
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
FR
public static final int FR
- See Also:
- Constant Field Values
-
EN
public static final int EN
- See Also:
- Constant Field Values
-
AR
public static final int AR
- See Also:
- Constant Field Values
-
-
Method Detail
-
langToCodeConverter
public static int langToCodeConverter(String lang)
Converting the Language from String to Integer- Parameters:
lang- String representing the language- Returns:
- Integer Code of the language
-
codeToLangConverter
public static Categorizer.Language codeToLangConverter(int code)
Converting the Language from code toCategorizer.Language- Parameters:
code- Integer representing the language code- Returns:
- Categorizer.Language Code of the language
- See Also:
Categorizer.Language
-
-