moj.lang
Class FrequencyList.CompareByDFfalling

java.lang.Object
  extended by moj.lang.FrequencyList.CompareByDFfalling
All Implemented Interfaces:
java.util.Comparator<java.lang.Object>
Enclosing class:
FrequencyList

public class FrequencyList.CompareByDFfalling
extends java.lang.Object
implements java.util.Comparator<java.lang.Object>

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 obj1, java.util.Map.Entry obj2)
           
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator<java.lang.Object>

compare

public int compare(java.util.Map.Entry obj1,
                   java.util.Map.Entry obj2)