Package com.icl.saxon.sort
Interface Sortable
- All Known Implementing Classes:
NodeSetExtent
,SortKeyEnumeration
public interface Sortable
A Sortable is an object that can be sorted using the QuickSort method.
- Author:
- Michael H. Kay
-
Method Summary
-
Method Details
-
compare
int compare(int a, int b) Compare two objects within this Sortable, identified by their position.- Returns:
- invalid input: '<'0 if obj[a]invalid input: '<'obj[b], 0 if obj[a]=obj[b], >0 if obj[a]>obj[b]
-
swap
void swap(int a, int b) Swap two objects within this Sortable, identified by their position.
-