Package org.imixs.workflow
Class ItemCollectionComparator
java.lang.Object
org.imixs.workflow.ItemCollectionComparator
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionItemCollectionComparator
(String aItemName) This method sorts by the default locale ascendingItemCollectionComparator
(String aItemName, boolean ascending) This method sorts by the default localeItemCollectionComparator
(String aItemName, boolean ascending, Locale locale) -
Method Summary
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
-
ItemCollectionComparator
-
ItemCollectionComparator
This method sorts by the default locale- Parameters:
aItemName
-ascending
-
-
ItemCollectionComparator
This method sorts by the default locale ascending- Parameters:
aItemName
-ascending
-
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ItemCollection>
-