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
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
-
MenuItemTextComparator
public MenuItemTextComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<JMenuItem>
-