Package io.guise.framework.converter
Enum LocaleStringLiteralStyle
- All Implemented Interfaces:
Serializable
,Comparable<LocaleStringLiteralStyle>
The style of a date in its string literal form.
-
Enum Constant Summary
Enum ConstantDescriptionA name for the locale's country that is appropriate for display to the user.The uppercase ISO 3166 two-letter country/region code for the locale.The uppercase ISO 3166 three-letter country/region code for the locale.A name for the locale's language that is appropriate for display to the user.The lowercase ISO 639 two-letter language code for the locale.The lowercase ISO 639-2/T three-letter language codeThe RFC 1766 language tag, such as en-US.A name for the locale that is appropriate for display to the user, such as language (country, variant).A name for the locale's variant code that is appropriate for display to the user.The variant code for the locale. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleStringLiteralStyle
Returns the enum constant of this type with the specified name.static LocaleStringLiteralStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COUNTRY
A name for the locale's country that is appropriate for display to the user. -
COUNTRY_CODE_2
The uppercase ISO 3166 two-letter country/region code for the locale. -
COUNTRY_CODE_3
The uppercase ISO 3166 three-letter country/region code for the locale. -
LANGUAGE
A name for the locale's language that is appropriate for display to the user. -
LANGUAGE_CODE_2
The lowercase ISO 639 two-letter language code for the locale. -
LANGUAGE_CODE_3
The lowercase ISO 639-2/T three-letter language code -
LANGUAGE_TAG
The RFC 1766 language tag, such as en-US. -
NAME
A name for the locale that is appropriate for display to the user, such as language (country, variant). -
VARIANT
A name for the locale's variant code that is appropriate for display to the user. -
VARIANT_CODE
The variant code for the locale.
-
-
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
-