net.sf.saxon.sort

Class LowercaseFirstComparer

public class LowercaseFirstComparer extends Object implements Comparator, Serializable

A Comparer used for comparing keys

Author: Michael H. Kay

Constructor Summary
LowercaseFirstComparer(Comparator base)
Method Summary
intcompare(Object a, Object b)
Compare two string objects: case is irrelevant, unless the strings are equal ignoring case, in which case lowercase comes first.

Constructor Detail

LowercaseFirstComparer

public LowercaseFirstComparer(Comparator base)

Method Detail

compare

public int compare(Object a, Object b)
Compare two string objects: case is irrelevant, unless the strings are equal ignoring case, in which case lowercase comes first.

Returns: <0 if a0 if a>b

Throws: ClassCastException if the objects are of the wrong type for this Comparer