Enum CodePointLength.NormalizationStrategy
- java.lang.Object
-
- java.lang.Enum<CodePointLength.NormalizationStrategy>
-
- org.hibernate.validator.constraints.CodePointLength.NormalizationStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<CodePointLength.NormalizationStrategy>
- Enclosing class:
- CodePointLength
public static enum CodePointLength.NormalizationStrategy extends Enum<CodePointLength.NormalizationStrategy>
Strategy for normalization.- See Also:
Normalizer,Normalizer.Form
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NFCNormalization by canonical decomposition, followed by canonical composition.NFDNormalization by canonical decomposition.NFKCNormalization by compatibility decomposition, followed by canonical composition.NFKDNormalization by compatibility decomposition.NONENo normalization.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequencenormalize(CharSequence value)Normalize a specified character sequence.static CodePointLength.NormalizationStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static CodePointLength.NormalizationStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final CodePointLength.NormalizationStrategy NONE
No normalization.
-
NFD
public static final CodePointLength.NormalizationStrategy NFD
Normalization by canonical decomposition.
-
NFC
public static final CodePointLength.NormalizationStrategy NFC
Normalization by canonical decomposition, followed by canonical composition.
-
NFKD
public static final CodePointLength.NormalizationStrategy NFKD
Normalization by compatibility decomposition.
-
NFKC
public static final CodePointLength.NormalizationStrategy NFKC
Normalization by compatibility decomposition, followed by canonical composition.
-
-
Method Detail
-
values
public static CodePointLength.NormalizationStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CodePointLength.NormalizationStrategy c : CodePointLength.NormalizationStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CodePointLength.NormalizationStrategy valueOf(String name)
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
public CharSequence normalize(CharSequence value)
Normalize a specified character sequence.- Parameters:
value- target value- Returns:
- normalized value
-
-