Package org.eu.zajc.akiwrapper
Enum Akiwrapper.Language
- All Implemented Interfaces:
Serializable,Comparable<Akiwrapper.Language>
- Enclosing interface:
Akiwrapper
- Author:
- Marko Zajc
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanisThemeSupported(Akiwrapper.Theme theme) Checks if thisAkiwrapper.Languagesupports a givenAkiwrapper.Theme.static Akiwrapper.LanguageReturns the enum constant of this type with the specified name.static Akiwrapper.Language[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENGLISH
-
ARABIC
-
CHINESE
-
GERMAN
-
SPANISH
-
FRENCH
-
HEBREW
-
ITALIAN
-
JAPANESE
-
KOREAN
-
DUTCH
-
POLISH
-
PORTUGESE
-
RUSSIAN
-
TURKISH
-
INDONESIAN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getLanguageCode
- Returns:
- the two-character language code used in akinator.com subdomains.
-
getSupportedThemes
Returns an unmodifiableSetofAkiwrapper.Themes supported by thisAkiwrapper.Language. Attempting to construct anAkiwrapperinstance with an incompatibleAkiwrapper.Language-Akiwrapper.Themecombination will throw aLanguageThemeCombinationException.- Returns:
- supported
Akiwrapper.Themes.
-
isThemeSupported
Checks if thisAkiwrapper.Languagesupports a givenAkiwrapper.Theme. Attempting to construct anAkiwrapperinstance with an incompatibleAkiwrapper.Language-Akiwrapper.Themecombination will throw aLanguageThemeCombinationException.- Parameters:
theme- theAkiwrapper.Themeto check support for.- Returns:
- whether the theme is supported.
-