public enum TextLanguage extends Enum<TextLanguage>
Enum Constant and Description |
---|
ENGLISH
English language.
|
FRENCH
French language.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
Get language.
|
Locale |
getLocale()
Get locale.
|
String |
getRegion()
Get region.
|
String |
getScript()
Get script.
|
String |
getVariant()
Get variant.
|
static TextLanguage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextLanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextLanguage FRENCH
public static final TextLanguage ENGLISH
public static TextLanguage[] values()
for (TextLanguage c : TextLanguage.values()) System.out.println(c);
public static TextLanguage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getLanguage()
public String getRegion()
public String getVariant()
public String getScript()
public Locale getLocale()
Copyright © 2023. All rights reserved.