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
public int |
-
compare (Object objectA, Object objectB)
- throws class cast exception if objects are not
QualificationDiscountDefs.
|
public boolean |
-
equals (Object object)
|
cName
public static final String
cName
DiscountComparator
public DiscountComparator()
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)