Package org.imixs.workflow.faces.util
Class SelectItemComparator
java.lang.Object
org.imixs.workflow.faces.util.SelectItemComparator
- All Implemented Interfaces:
Comparator<jakarta.faces.model.SelectItem>
public class SelectItemComparator
extends Object
implements Comparator<jakarta.faces.model.SelectItem>
Sorts a ArrayList of SelectItems by label
- Author:
- rsoika
-
Constructor Summary
ConstructorDescriptionSelectItemComparator
(boolean ascending) SelectItemComparator
(Locale locale, boolean ascending) -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(jakarta.faces.model.SelectItem a, jakarta.faces.model.SelectItem b) 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
-
Constructor Details
-
SelectItemComparator
public SelectItemComparator(boolean ascending) -
SelectItemComparator
-
-
Method Details
-
compare
public int compare(jakarta.faces.model.SelectItem a, jakarta.faces.model.SelectItem b) - Specified by:
compare
in interfaceComparator<jakarta.faces.model.SelectItem>
-