Class NaturalSortKeyBuilder
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.util.NaturalSortKeyBuilder
-
public final class NaturalSortKeyBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_VERSIONVersion of the binary key format.
-
Constructor Summary
Constructors Constructor Description NaturalSortKeyBuilder()Creates a builder using the collation order shared byfr-FRandenunder CLDR.NaturalSortKeyBuilder(java.util.Locale locale)Creates a builder for an explicit collation locale.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]build(java.lang.String strValue)Builds the sort key for a value.
-
-
-
Field Detail
-
FORMAT_VERSION
public static final int FORMAT_VERSION
Version of the binary key format. Bump on any change tobuild(String): previously indexed keys are then no longer comparable with newly produced ones and a full reindexation is required.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NaturalSortKeyBuilder
public NaturalSortKeyBuilder()
Creates a builder using the collation order shared byfr-FRandenunder CLDR.
-
NaturalSortKeyBuilder
public NaturalSortKeyBuilder(java.util.Locale locale)
Creates a builder for an explicit collation locale.- Parameters:
locale- the collation locale,nullmeaningLocale.ENGLISH
-
-