org.aspectj.org.eclipse.jdt.internal.core.util
Class ToStringSorter

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ToStringSorter

public class ToStringSorter
extends java.lang.Object

The SortOperation takes a collection of objects and returns a sorted collection of these objects. The sorting of these objects is based on their toString(). They are sorted in alphabetical order.


Constructor Summary
ToStringSorter()
           
 
Method Summary
 boolean compare(java.lang.String stringOne, java.lang.String stringTwo)
          Returns true if stringTwo is 'greater than' stringOne This is the 'ordering' method of the sort operation.
 void sort(java.lang.Object[] unSortedObjects, java.lang.String[] unsortedStrings)
          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

ToStringSorter

public ToStringSorter()
Method Detail

compare

public boolean compare(java.lang.String stringOne,
                       java.lang.String stringTwo)
Returns true if stringTwo is 'greater than' stringOne This is the 'ordering' method of the sort operation.


sort

public void sort(java.lang.Object[] unSortedObjects,
                 java.lang.String[] unsortedStrings)
Return a new sorted collection from this unsorted collection. Sort using quick sort.