com.sun.tools.doclets.internal.toolkit.util
Class Group.MapKeyComparator

java.lang.Object
  extended by com.sun.tools.doclets.internal.toolkit.util.Group.MapKeyComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.String>
Enclosing class:
Group

private static class Group.MapKeyComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>

Since we need to sort the keys in the reverse order(longest key first), the compare method in the implementing class is doing the reverse comparison.


Constructor Summary
private Group.MapKeyComparator()
           
 
Method Summary
 int compare(java.lang.String key1, java.lang.String key2)
           
 
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

Group.MapKeyComparator

private Group.MapKeyComparator()
Method Detail

compare

public int compare(java.lang.String key1,
                   java.lang.String key2)
Specified by:
compare in interface java.util.Comparator<java.lang.String>