| java.lang.Object org.eclipse.ui.internal.cheatsheets.registry.Sorter
Sorter | abstract public class Sorter (Code) | | The SortOperation takes a collection of objects and returns
a sorted collection of these objects. Concrete instances of this
class provide the criteria for the sorting of the objects based on
the type of the objects.
|
Method Summary | |
abstract boolean | compare(Object elementOne, Object elementTwo) Returns true if elementTwo is 'greater than' elementOne
This is the 'ordering' method of the sort operation. | Object[] | sort(Object[] unSortedCollection) Return a new sorted collection from this unsorted collection. |
compare | abstract boolean compare(Object elementOne, Object elementTwo)(Code) | | Returns true if elementTwo is 'greater than' elementOne
This is the 'ordering' method of the sort operation.
Each subclass overides this method with the particular
implementation of the 'greater than' concept for the
objects being sorted.
|
sort | Object[] sort(Object[] unSortedCollection)(Code) | | Return a new sorted collection from this unsorted collection.
Sort using quick sort.
|
|
|