public final class LanguageConfigurator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LanguageConfigurator.LanguagesNotConfiguredException
Exception thrown when the Language system has not been properly initialized.
|
| Constructor and Description |
|---|
LanguageConfigurator(Class<E> languageClass)
Initializes the Language system using the specified enum class implementing the Language interface.
|
| Modifier and Type | Method and Description |
|---|---|
static Language |
getLanguageByCode(String code) |
static Class |
getLanguageClass() |
static Language[] |
getLanguages() |
public LanguageConfigurator(Class<E> languageClass)
E - Type parameter for Enum and Language interface.languageClass - Class that is an Enum and implements the Language interface.public static Language getLanguageByCode(String code)
code - Code to lookup the Language instance for.public static Language[] getLanguages()
public static Class getLanguageClass()
Copyright © 2017. All rights reserved.