| net.sf.saxon.sort.Sortable
All known Subclasses: net.sf.saxon.sort.DocumentOrderIterator, net.sf.saxon.sort.SortedIterator,
Sortable | public interface Sortable (Code) | | A Sortable is an object that can be sorted using the QuickSort method.
author: Michael H. Kay |
Method Summary | |
public int | compare(int a, int b) Compare two objects within this Sortable, identified by their position. | public void | swap(int a, int b) Swap two objects within this Sortable, identified by their position. |
compare | public int compare(int a, int b)(Code) | | Compare two objects within this Sortable, identified by their position.
<0 if obj[a]0 if obj[a]>obj[b] |
swap | public void swap(int a, int b)(Code) | | Swap two objects within this Sortable, identified by their position.
|
|
|