|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.saxon.sort.TextComparer
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
| Constructor Summary | |
TextComparer(java.util.Comparator collator)
|
|
| Method Summary | |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two Items by converting them to strings and comparing the string values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
| Constructor Detail |
public TextComparer(java.util.Comparator collator)
| Method Detail |
public int compare(java.lang.Object a,
java.lang.Object b)
throws java.lang.ClassCastException
compare in interface java.util.Comparatora - the first Item to be compared.b - the second Item to be compared.
java.lang.ClassCastException - if the objects are not Items, or are items that cannot be convered
to strings (e.g. QNames)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||