public final class PricingModelComparator
extends java.lang.Object
implements java.util.Comparator
Properties:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected java.lang.String |
mPricingModelPriorityProperty
name of the pricing model priority property.
|
| Constructor and Description |
|---|
PricingModelComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two promotion items for sorting by priority
and secondary sort by repository id. |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPricingModelPriorityProperty()
Get property PricingModelPriorityProperty
|
void |
setPricingModelPriorityProperty(java.lang.String pPricingModelPriorityProperty)
Set property PricingModelPriorityProperty
|
public static java.lang.String CLASS_VERSION
protected java.lang.String mPricingModelPriorityProperty
public void setPricingModelPriorityProperty(java.lang.String pPricingModelPriorityProperty)
pPricingModelPriorityProperty - new value to setpublic java.lang.String getPricingModelPriorityProperty()
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - Promotion repository itemo2 - Promotion repository itempublic boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorequals in class java.lang.Object