DiscountComparator Class

com.bea.commerce.ebusiness.price.engine
DiscountComparator Class

public class DiscountComparator

    extends Object
    implements Comparator, Serializable

This class is used in conjunction with java.util.Collection and QualificationDiscountDef objects to compare them by priority. We assume that only order or only item discounts will be presented to this comparator.


Hierarchy
Object
  DiscountComparator
All Implemented Interfaces

Comparator, Serializable

Field Summary

public static final String
cName
String
 

Constructor Summary

DiscountComparator()

 

Method Summary

public int
compare(Object objectA, Object objectB)
throws class cast exception if objects are not QualificationDiscountDefs.
public boolean
equals(Object object)
 
Methods from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface java.util.Comparator
compare, equals
 

Field Detail

cName

public static final String cName

 

Constructor Detail

DiscountComparator

public DiscountComparator()
 

Method Detail

compare(Object, Object) Method

public int compare(Object objectA, 
                   Object objectB)
throws class cast exception if objects are not QualificationDiscountDefs.


equals(Object) Method

public boolean equals(Object object)
Overrides
Object.equals(Object)