Package adams.gui.goe.popupmenu
Class CustomizerComparator
- java.lang.Object
-
- adams.gui.goe.popupmenu.CustomizerComparator
-
- All Implemented Interfaces:
Comparator<GenericObjectEditorPopupMenuCustomizer>
public class CustomizerComparator extends Object implements Comparator<GenericObjectEditorPopupMenuCustomizer>
Comparator for sorting the customizers.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description CustomizerComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(GenericObjectEditorPopupMenuCustomizer o1, GenericObjectEditorPopupMenuCustomizer o2)
Returns the string comparison result of the names of the customizers.-
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(GenericObjectEditorPopupMenuCustomizer o1, GenericObjectEditorPopupMenuCustomizer o2)
Returns the string comparison result of the names of the customizers.- Specified by:
compare
in interfaceComparator<GenericObjectEditorPopupMenuCustomizer>
- Parameters:
o1
- the first customizero2
- the second customizer- Returns:
- the result
-
-