Package de.xima.fc.mdl.ui
Class NamedUiElementComparator
java.lang.Object
de.xima.fc.mdl.ui.NamedUiElementComparator
- All Implemented Interfaces:
Comparator<INamedUiElement>
Comparator-Implementierung für den Vergleich von
INamedUiElement
-Instanzen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamedUiElementComparator
Instanz für aufsteigende Sortierung ('A' kommt vor 'B').static final NamedUiElementComparator
Instanz für absteigende Sortierung ('B' kommt vor 'A'). -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(INamedUiElement e1, INamedUiElement e2) Vergleicht die übergebenen Elemente lexikalisch anhand ihres Namens.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
-
Field Details
-
ASC_INST
Instanz für aufsteigende Sortierung ('A' kommt vor 'B'). -
DESC_INST
Instanz für absteigende Sortierung ('B' kommt vor 'A').
-
-
Method Details
-
compare
Vergleicht die übergebenen Elemente lexikalisch anhand ihres Namens.- Specified by:
compare
in interfaceComparator<INamedUiElement>
-