RSE
Release 1.0

org.eclipse.rse.core
Class SystemSorter

java.lang.Object
  extended byorg.eclipse.rse.core.SystemSorter

public abstract class SystemSorter
extends Object

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.


Constructor Summary
SystemSorter()
           
 
Method Summary
abstract  boolean compare(Object elementOne, Object elementTwo)
          Returns true is 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSorter

public SystemSorter()
Method Detail

compare

public abstract boolean compare(Object elementOne,
                                Object elementTwo)
Returns true is 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

public Object[] sort(Object[] unSortedCollection)
Return a new sorted collection from this unsorted collection. Sort using quick sort.


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.