Class ItemCollectionComparator

java.lang.Object
org.imixs.workflow.ItemCollectionComparator
All Implemented Interfaces:
Comparator<ItemCollection>

public class ItemCollectionComparator extends Object implements Comparator<ItemCollection>
The ItemCollectionComparator provides a Comparator for ItemColections. The item to be compared can be provided in the constructor.

Usage:

Collections.sort(collection, new ItemCollectionComparator("txtname", true));

Author:
rsoika
  • Constructor Details

    • ItemCollectionComparator

      public ItemCollectionComparator(String aItemName, boolean ascending, Locale locale)
    • ItemCollectionComparator

      public ItemCollectionComparator(String aItemName, boolean ascending)
      This method sorts by the default locale
      Parameters:
      aItemName -
      ascending -
    • ItemCollectionComparator

      public ItemCollectionComparator(String aItemName)
      This method sorts by the default locale ascending
      Parameters:
      aItemName -
      ascending -
  • Method Details