public enum CollationStrength extends Enum<CollationStrength>
Enum Constant and Description |
---|
IDENTICAL
When all other levels are equal, the identical level is used as a tiebreaker.
|
PRIMARY
Strongest level, denote difference between base characters
|
QUATERNARY
When punctuation is ignored at level 1-3, an additional level can be used to distinguish words with and without punctuation.
|
SECONDARY
Accents in characters are considered secondary differences
|
TERTIARY
Upper and lower case differences in characters are distinguished at the tertiary level.
|
Modifier and Type | Method and Description |
---|---|
static CollationStrength |
fromInt(int intRepresentation)
Gets the order from the given integer representation.
|
int |
getIntRepresentation()
The integer representation of the collation strength.
|
static CollationStrength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CollationStrength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollationStrength PRIMARY
public static final CollationStrength SECONDARY
public static final CollationStrength TERTIARY
public static final CollationStrength QUATERNARY
public static final CollationStrength IDENTICAL
public static CollationStrength[] values()
for (CollationStrength c : CollationStrength.values()) System.out.println(c);
public static CollationStrength 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 int getIntRepresentation()
public static CollationStrength fromInt(int intRepresentation)
intRepresentation
- the integer representation