moj.lang
Class FrequencyList.CompareByDFfalling

java.lang.Object
  extended by moj.lang.FrequencyList.CompareByDFfalling
All Implemented Interfaces:
java.util.Comparator<java.util.Map.Entry<java.lang.String,int[]>>
Enclosing class:
FrequencyList<Entry>

public class FrequencyList.CompareByDFfalling
extends java.lang.Object
implements java.util.Comparator<java.util.Map.Entry<java.lang.String,int[]>>

For ordering words from highest to lowest document frequency. If frequency is equal, words are put in alphabetical order.


Constructor Summary
FrequencyList.CompareByDFfalling()
           
 
Method Summary
 int compare(java.util.Map.Entry<java.lang.String,int[]> obj1, java.util.Map.Entry<java.lang.String,int[]> obj2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FrequencyList.CompareByDFfalling

public FrequencyList.CompareByDFfalling()
Method Detail

compare

public int compare(java.util.Map.Entry<java.lang.String,int[]> obj1,
                   java.util.Map.Entry<java.lang.String,int[]> obj2)
Specified by:
compare in interface java.util.Comparator<java.util.Map.Entry<java.lang.String,int[]>>