atg.commerce.pricing
Class PricingModelComparator
java.lang.Object
atg.commerce.pricing.PricingModelComparator
- All Implemented Interfaces:
- java.util.Comparator
public final class PricingModelComparator
- extends java.lang.Object
- implements java.util.Comparator
A comparator used for sorting pricing models by priority. It accomplishes this by
comparing the priority property of two pricing models (RepositoryItems). The name of
the priority property is configurable.
Properties:
- pricingModelPriorityProperty is the name of the property by which
the pricing models are sorted.
Field Summary |
static java.lang.String |
CLASS_VERSION
Class version string |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_VERSION
public static java.lang.String CLASS_VERSION
- Class version string
PricingModelComparator
public PricingModelComparator()
setPricingModelPriorityProperty
public void setPricingModelPriorityProperty(java.lang.String pPricingModelPriorityProperty)
- Set property PricingModelPriorityProperty
- Parameters:
pPricingModelPriorityProperty
- new value to set
getPricingModelPriorityProperty
public java.lang.String getPricingModelPriorityProperty()
- Get property PricingModelPriorityProperty
- Returns:
- PricingModelPriorityProperty
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.util.Comparator
- Overrides:
equals
in class java.lang.Object