Class ActionListPriorityComparator

java.lang.Object
org.kuali.rice.kew.actionlist.dao.impl.ActionListPriorityComparator
All Implemented Interfaces:
Comparator<ActionItemContract>

public class ActionListPriorityComparator extends Object implements Comparator<ActionItemContract>
Compares an action item to another action item and determines if one item has a higher priority than the other. Therefore, calling code needs to ensure that the document and user on the item are the same. If action items for different documents are passed in, then the compare method should always return 0. If the response returned from compare is less than 0, it means the first argument is lower priority than the second. If a value greater than 0 is returned it means the first argument has a higher priority then the second. If the result returned is 0, then the two action items have the same priority.
Author:
Kuali Rice Team (rice.collab@kuali.org)