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 NamedUiElementComparatorInstanz für aufsteigende Sortierung ('A' kommt vor 'B').static final NamedUiElementComparatorInstanz für absteigende Sortierung ('B' kommt vor 'A'). -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods 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:
comparein interfaceComparator<INamedUiElement>
-