Package fr.sandro642.github.hook
Class LangSupport
java.lang.Object
fr.sandro642.github.hook.LangSupport
LangSupport is a placeholder class for future language support implementations.
Currently, it does not contain any methods or properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LangSupportPublic Getter of LangSupport instance.Method to get the path of the language file based on the LangType.setLangTypeVariable(LangType langType) Sets the LangType variable for this instance.
-
Constructor Details
-
LangSupport
public LangSupport()
-
-
Method Details
-
setLangTypeVariable
Sets the LangType variable for this instance.- Parameters:
langType- The language type to set. Must not be null.- Returns:
- The LangType that was set.
-
getPathFile
Method to get the path of the language file based on the LangType.- Returns:
- The path of the language file.
- Throws:
IllegalArgumentException- If the LangType is null or unsupported.
-
getInstance
Public Getter of LangSupport instance. This method returns the singleton instance of LangSupport. If the instance is null, it creates a new instance.- Returns:
- instance
-