Enum CodePointLength.NormalizationStrategy
java.lang.Object
java.lang.Enum<CodePointLength.NormalizationStrategy>
org.hibernate.validator.constraints.CodePointLength.NormalizationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<CodePointLength.NormalizationStrategy>
,java.lang.constant.Constable
- Enclosing class:
- CodePointLength
public static enum CodePointLength.NormalizationStrategy
extends Enum<CodePointLength.NormalizationStrategy>
Strategy for normalization.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNormalization by canonical decomposition, followed by canonical composition.Normalization by canonical decomposition.Normalization by compatibility decomposition, followed by canonical composition.Normalization by compatibility decomposition.No normalization. -
Method Summary
Modifier and TypeMethodDescriptionnormalize
(CharSequence value) Normalize a specified character sequence.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No normalization. -
NFD
Normalization by canonical decomposition. -
NFC
Normalization by canonical decomposition, followed by canonical composition. -
NFKD
Normalization by compatibility decomposition. -
NFKC
Normalization by compatibility decomposition, followed by canonical composition.
-
-
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
-
normalize
Normalize a specified character sequence.- Parameters:
value
- target value- Returns:
- normalized value
-