ucr.core
Class ResultsQSort

java.lang.Object
  extended byucr.core.ResultsQSort
All Implemented Interfaces:
Comparer

public class ResultsQSort
extends java.lang.Object
implements Comparer


Constructor Summary
ResultsQSort()
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          The interface implementation should compare the two objects and return an int using these rules: if (a > b) return > 0; if (a == b) return 0; if (a < b) return < 0;
 java.lang.Object[] qsort(java.util.Hashtable invertedIndex)
           
 int reverse(java.lang.Object a, java.lang.Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultsQSort

public ResultsQSort()
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Description copied from interface: Comparer
The interface implementation should compare the two objects and return an int using these rules: if (a > b) return > 0; if (a == b) return 0; if (a < b) return < 0;

Specified by:
compare in interface Comparer

reverse

public int reverse(java.lang.Object a,
                   java.lang.Object b)

qsort

public java.lang.Object[] qsort(java.util.Hashtable invertedIndex)