Class MenuItemComparator
- java.lang.Object
-
- adams.gui.tools.wekainvestigator.history.MenuItemComparator
-
- All Implemented Interfaces:
Comparator<AbstractHistoryPopupMenuItem>
public class MenuItemComparator extends Object implements Comparator<AbstractHistoryPopupMenuItem>
Comparator for sorting the menu items for the history panel.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description MenuItemComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AbstractHistoryPopupMenuItem o1, AbstractHistoryPopupMenuItem o2)
Compares the menu items based on category and title.-
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
-
-
-
-
Method Detail
-
compare
public int compare(AbstractHistoryPopupMenuItem o1, AbstractHistoryPopupMenuItem o2)
Compares the menu items based on category and title.- Specified by:
compare
in interfaceComparator<AbstractHistoryPopupMenuItem>
- Parameters:
o1
- the first menu itemo2
- the second menu item- Returns:
- the comparison
-
-