| java.lang.Object net.sf.saxon.sort.TextComparer
TextComparer | public class TextComparer implements Comparator,java.io.Serializable(Code) | | A Comparer used for comparing sort keys when data-type="text". The items to be
compared are converted to strings, and the strings are then compared using an
underlying collator
author: Michael H. Kay |
Method Summary | |
public int | compare(Object a, Object b) Compare two Items by converting them to strings and comparing the string values.
Parameters: a - the first Item to be compared. Parameters: b - the second Item to be compared. |
compare | public int compare(Object a, Object b) throws ClassCastException(Code) | | Compare two Items by converting them to strings and comparing the string values.
Parameters: a - the first Item to be compared. Parameters: b - the second Item to be compared. <0 if a0 if a>b throws: ClassCastException - if the objects are not Items, or are items that cannot be converedto strings (e.g. QNames) |
|
|