com.ibm.commerce.tools.campaigns
Class CampaignInitiativeDataBeanQuickSortCompare

java.lang.Object
  |
  +--com.ibm.commerce.tools.campaigns.CampaignInitiativeDataBeanQuickSortCompare
All Implemented Interfaces:
QuickSortCompare

public final class CampaignInitiativeDataBeanQuickSortCompare
extends java.lang.Object
implements QuickSortCompare

This class is used to compare CampaignInitiativeDataBean objects during a sort.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Constructor Summary
CampaignInitiativeDataBeanQuickSortCompare(java.text.Collator localeCollator, java.lang.String orderBy)
          This constructor takes a Collater object and an "orderBy" value.
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Compares two CampaignInitiativeDataBean objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

CampaignInitiativeDataBeanQuickSortCompare

public CampaignInitiativeDataBeanQuickSortCompare(java.text.Collator localeCollator,
                                                  java.lang.String orderBy)
This constructor takes a Collater object and an "orderBy" value.
Parameters:
localeCollator - the locale collator used in the sorting
orderBy - the field to be sorted
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Compares two CampaignInitiativeDataBean objects.
Specified by:
compare in interface QuickSortCompare
Parameters:
obj1 - the first Object
obj2 - the second Object
Returns:
0 if the objects are equal. A value greater than 1 if obj1 is greater than obj2. A value less than 1 if ojb1 is less than obj2.