|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.saxon.sort.NumericComparer
A Comparer used for comparing sort keys when data-type="number". The items to be compared are converted to numbers, and the numbers are then compared directly
| Constructor Summary | |
NumericComparer()
|
|
| Method Summary | |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two Items by converting them to numbers and comparing the numeric 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 NumericComparer()
| Method Detail |
public int compare(java.lang.Object a,
java.lang.Object b)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||