com.icl.saxon.sort
Class StringComparer
public class StringComparer
A Comparer used for comparing keys. This comparer uses the binary Unicode value of the
characters.
compare
public int compare(Object a,
Object b)
Compare two string objects using default collating
- compare in interface Comparer
setCaseOrder
public Comparer setCaseOrder(int caseOrder)
Set case order
- setCaseOrder in interface TextComparer
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
- 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.