Package com.teamdev.jxbrowser.engine
Enum Class Language
- All Implemented Interfaces:
Serializable
,Comparable<Language>
,Constable
A list of supported user interface languages.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns anOptional
that contains theLanguage
for the givenlanguage
andcountry
codes or an emptyOptional
if there is noLanguage
associated with the specifiedlanguage
andcountry
codes.Returns anOptional
that contains theLanguage
for the givenLocale
or an emptyOptional
if there is noLanguage
associated with the language obtained from the givenLocale
.toString()
Returns a string representation of the current language in format:static Language
Returns the enum constant of this class with the specified name.static Language[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
AMHARIC
-
ARABIC
-
BULGARIAN
-
BENGALI
-
CATALAN
-
CZECH
-
DANISH
-
GERMAN
-
GREEK
-
ENGLISH_US
-
ENGLISH_UK
-
SPANISH_LATIN_AMERICA
-
SPANISH_SPAIN
-
ESTONIAN
-
PERSIAN
-
FINNISH
-
FILIPINO
-
FRENCH
-
GUJARATI
-
HEBREW
-
HINDI
-
CROATIAN
-
HUNGARIAN
-
INDONESIAN
-
ITALIAN
-
JAPANESE
-
KANNADA
-
KOREAN
-
LITHUANIAN
-
LATVIAN
-
MALAYALAM
-
MARATHI
-
MALAY
-
NORWEGIAN
-
DUTCH
-
POLISH
-
PORTUGUESE_BRAZIL
-
PORTUGUESE_PORTUGAL
-
ROMANIAN
-
RUSSIAN
-
SLOVAK
-
SLOVENIAN
-
SERBIAN
-
SWEDISH
-
SWAHILI
-
TAMIL
-
TELUGU
-
THAI
-
TURKISH
-
UKRAINIAN
-
VIETNAMESE
-
CHINESE
-
CHINESE_TAIWAN
-
-
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
-
of
Returns anOptional
that contains theLanguage
for the givenLocale
or an emptyOptional
if there is noLanguage
associated with the language obtained from the givenLocale
. -
of
Returns anOptional
that contains theLanguage
for the givenlanguage
andcountry
codes or an emptyOptional
if there is noLanguage
associated with the specifiedlanguage
andcountry
codes.Use instead of
of(Locale)
if there is a need to pass the new language codes instead of the old ones, becauseLocale
internally converts the new language code passed to the constructor to the old one. There is a chance not to find a language for an old code, so if you want to be sure that the passed locale will not be converted, use this method with the required language and country codes.A set of the new language codes that will be converted to the old ones in the
Locale
are specified inLocale(String)
.- Parameters:
language
- language codecountry
- country code- Returns:
- an
Optional
ofLanguage
for the given parameters orOptional.empty()
if there is noLanguage
associated with the given parameters - Since:
- 7.1
- See Also:
-
toString
Returns a string representation of the current language in format:<language code>SEPARATOR<country code>
SEPARATOR
is a platform dependent symbol (either "_" or "-").
-