Class NaturalSortKeyBuilder
java.lang.Object
fr.paris.lutece.plugins.forms.util.NaturalSortKeyBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intVersion of the binary key format. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a builder using the collation order shared byfr-FRandenunder CLDR.NaturalSortKeyBuilder(Locale locale) Creates a builder for an explicit collation locale. -
Method Summary
-
Field Details
-
FORMAT_VERSION
public static final int FORMAT_VERSIONVersion 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:
-
-
Constructor Details
-
NaturalSortKeyBuilder
public NaturalSortKeyBuilder()Creates a builder using the collation order shared byfr-FRandenunder CLDR. -
NaturalSortKeyBuilder
Creates a builder for an explicit collation locale.- Parameters:
locale- the collation locale,nullmeaningLocale.ENGLISH
-
-
Method Details
-
build
Builds the sort key for a value.- Parameters:
strValue- the raw response value, may benull- Returns:
- the binary sort key, never
null; empty for anullor empty input
-