com.icl.saxon.sort

Class TextComparer

public abstract class TextComparer extends Comparer

A Comparer used for comparing text keys

Author: Michael H. Kay

Field Summary
static intDEFAULT_CASE_ORDER
static intLOWERCASE_FIRST
static intUPPERCASE_FIRST
Method Summary
ComparersetCaseOrder(int caseOrder)
Set case order

Field Detail

DEFAULT_CASE_ORDER

public static final int DEFAULT_CASE_ORDER

LOWERCASE_FIRST

public static final int LOWERCASE_FIRST

UPPERCASE_FIRST

public static final int UPPERCASE_FIRST

Method Detail

setCaseOrder

public Comparer setCaseOrder(int caseOrder)
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.