com.bea.commerce.ebusiness.price.engine.pool
Class PriceComparator
java.lang.Object
|
+--com.bea.commerce.ebusiness.price.engine.pool.PriceComparator
- public class PriceComparator
- extends java.lang.Object
- implements java.util.Comparator, java.io.Serializable
This class is used in conjunction with java.util.Collection and
ItemObjects to compare them by current price.
- See Also:
- Serialized Form
Field Summary
|
static java.lang.String |
cName
|
Method Summary
|
int |
compare(java.lang.Object objectA,
java.lang.Object objectB)
|
boolean |
equals(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
cName
public static final java.lang.String cName
PriceComparator
public PriceComparator()
compare
public int compare(java.lang.Object objectA,
java.lang.Object objectB)
- Specified by:
- compare in interface java.util.Comparator
- Throws:
- java.lang.ClassCastException - if objects are not
ItemObject
s.
equals
public boolean equals(java.lang.Object object)
- Specified by:
- equals in interface java.util.Comparator
- Overrides:
- equals in class java.lang.Object
Copyright © 2002 BEA Systems, Inc. All Rights Reserved