Package eu.locklogin.api.util.enums
Enum Class Lang
- All Implemented Interfaces:
Serializable
,Comparable<Lang>
,Constable
Valid LockLogin languages
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLockLogin Chinese simplified languageLockLogin community languageLockLogin English languageLockLogin French languageLockLogin Spanish language -
Method Summary
Modifier and TypeMethodDescriptionGet the country of the country localizercountryLocalizer(String communityLang)
Get the country localizerfriendlyName(String communityLang)
Get the language friendly namestatic Lang
Returns the enum constant of this class with the specified name.static Lang[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENGLISH
LockLogin English language -
SPANISH
LockLogin Spanish language -
FRENCH
LockLogin French language -
CHINESE_SIMPLIFIED
LockLogin Chinese simplified language -
COMMUNITY
LockLogin community language
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
friendlyName
Get the language friendly name- Parameters:
communityLang
- the community language name- Returns:
- the language friendly name
-
countryLocalizer
Get the country localizer- Parameters:
communityLang
- the community language name- Returns:
- the country localizer
-
country
Get the country of the country localizer- Parameters:
communityLang
- the community language name- Returns:
- the country
-