Enum LocaleMatchType
- All Implemented Interfaces:
Serializable, Comparable<LocaleMatchType>, Constable
Describes the relationship used to select a locale.
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe requested and supported locale tags matched after canonicalization.The supported locale matched through a CLDR parent-locale fallback.The requested and supported locale tags matched exactly.The supported locale matched an RFC 4647 extended language range.The requested and supported locales matched after likely-subtag expansion.No acceptable supported locale was found.The requested and supported locales matched by primary language.The supported locale was selected by an acceptable wildcard range. -
Method Summary
Modifier and TypeMethodDescriptionstatic LocaleMatchTypeReturns the enum constant of this type with the specified name.static LocaleMatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
No acceptable supported locale was found. -
EXACT
The requested and supported locale tags matched exactly. -
CANONICAL
The requested and supported locale tags matched after canonicalization. -
CLDR_FALLBACK
The supported locale matched through a CLDR parent-locale fallback. -
LIKELY_SUBTAG
The requested and supported locales matched after likely-subtag expansion. -
EXTENDED_RANGE
The supported locale matched an RFC 4647 extended language range. -
PRIMARY_LANGUAGE
The requested and supported locales matched by primary language. -
WILDCARD
The supported locale was selected by an acceptable wildcard range.
-
-
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
-