Package com.icl.saxon.sort
Class TextComparer
java.lang.Object
com.icl.saxon.sort.Comparer
com.icl.saxon.sort.TextComparer
- Direct Known Subclasses:
Compare_en
,StringComparer
A Comparer used for comparing text keys
- Author:
- Michael H. Kay
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.icl.saxon.sort.Comparer
compare, setDataType, setOrder
-
Field Details
-
DEFAULT_CASE_ORDER
public static final int DEFAULT_CASE_ORDER- See Also:
-
LOWERCASE_FIRST
public static final int LOWERCASE_FIRST- See Also:
-
UPPERCASE_FIRST
public static final int UPPERCASE_FIRST- See Also:
-
-
Constructor Details
-
TextComparer
public TextComparer()
-
-
Method Details
-
setCaseOrder
Set case order- Parameters:
caseOrder
- one of DEFAULT_CASE_ORDER, LOWERCASE_FIRST, or UPPERCASE_FIRST. Indicates whether upper case letters precede or follow lower case letters in the ordering- Returns:
- either this or a different Comparer that will be used to perform the comparisons. This allows the TextComparer to delegate the comparison to a Comparer dedicated to a specific case order.
-