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 Details

    • SelectItemComparator

      public SelectItemComparator(boolean ascending)
    • SelectItemComparator

      public SelectItemComparator(Locale locale, boolean ascending)
  • Method Details

    • compare

      public int compare(jakarta.faces.model.SelectItem a, jakarta.faces.model.SelectItem b)
      Specified by:
      compare in interface Comparator<jakarta.faces.model.SelectItem>