Class Group.MapKeyComparator
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.Group.MapKeyComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
- Group
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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MapKeyComparator
private MapKeyComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-