Klasse ItemCollectionComparator

java.lang.Object
org.imixs.workflow.ItemCollectionComparator
Alle implementierten Schnittstellen:
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));

Autor:
rsoika
  • Konstruktordetails

    • ItemCollectionComparator

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

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

      public ItemCollectionComparator(String aItemName)
      This method sorts by the default locale ascending
      Parameter:
      aItemName -
      ascending -
  • Methodendetails