public enum LocaleMatcher extends Enum<LocaleMatcher> implements Key
Enum Constant and Description |
---|
BEST_FIT
Lets the runtime provide a locale that's at least, but possibly more, suited for the request than the result of the Lookup algorithm.
|
LOOKUP
Used to select the single language tag that best matches the language priority list for a given request.
When performing lookup, each language range in the language priority list is considered in turn, according to priority. By contrast with filtering, each language range represents the most specific tag that is an acceptable match. See BCP 47 for more details. |
Modifier and Type | Method and Description |
---|---|
String |
value()
Returns the name value of property
|
static LocaleMatcher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocaleMatcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final LocaleMatcher LOOKUP
public static final LocaleMatcher BEST_FIT
public static LocaleMatcher[] values()
for (LocaleMatcher c : LocaleMatcher.values()) System.out.println(c);
public static LocaleMatcher 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 null