java.lang.Object
org.gjt.sp.jedit.menu.MenuItemTextComparator
- All Implemented Interfaces:
Comparator<JMenuItem>
MenuItemTextComparator implements java.util.Comparator, and compares the text
value of JMenuItems using the case-insensitive smart comparison of
StandardUtilities.compareStrings. If one of the JMenuItems is an
EnhancedMenuItem it is given a higher comparison value.
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MenuItemTextComparator
public MenuItemTextComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<JMenuItem>
-