Package de.xima.fc.mdl.ui
Class NamedUiElementComparator
- java.lang.Object
 - 
- de.xima.fc.mdl.ui.NamedUiElementComparator
 
 
- 
- All Implemented Interfaces:
 Comparator<INamedUiElement>
public final class NamedUiElementComparator extends Object implements Comparator<INamedUiElement>
Comparator-Implementierung für den Vergleich vonINamedUiElement-Instanzen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static NamedUiElementComparatorASC_INSTInstanz für aufsteigende Sortierung ('A' kommt vor 'B').static NamedUiElementComparatorDESC_INSTInstanz für absteigende Sortierung ('B' kommt vor 'A'). 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(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 Detail
- 
ASC_INST
public static final NamedUiElementComparator ASC_INST
Instanz für aufsteigende Sortierung ('A' kommt vor 'B'). 
- 
DESC_INST
public static final NamedUiElementComparator DESC_INST
Instanz für absteigende Sortierung ('B' kommt vor 'A'). 
 - 
 
- 
Method Detail
- 
compare
public int compare(INamedUiElement e1, INamedUiElement e2)
Vergleicht die übergebenen Elemente lexikalisch anhand ihres Namens.- Specified by:
 comparein interfaceComparator<INamedUiElement>
 
 - 
 
 -