de.hawlitzek.util.text
Class CountedEntryComparator

java.lang.Object
  |
  +--de.hawlitzek.util.text.CountedEntryComparator
All Implemented Interfaces:
java.util.Comparator

public class CountedEntryComparator
extends java.lang.Object
implements java.util.Comparator

Reverse comparator for CountedEntry We want to sort in descending order!

Author:
Florian Hawlitzek, Hawlitzek IT-Consulting GmbH

Constructor Summary
CountedEntryComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CountedEntryComparator

public CountedEntryComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(Object, Object)