© 2005 BEA Systems, Inc.

com.bea.commerce.ebusiness.price.engine.pool
Class PriceComparator

java.lang.Object
  extended bycom.bea.commerce.ebusiness.price.engine.pool.PriceComparator
All Implemented Interfaces:
Comparator, Serializable

public class PriceComparator
extends Object
implements Comparator, 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 String cName
           
 
Constructor Summary
PriceComparator()
           
 
Method Summary
 int compare(Object objectA, Object objectB)
           
 boolean equals(Object object)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cName

public static final String cName
See Also:
Constant Field Values
Constructor Detail

PriceComparator

public PriceComparator()
Method Detail

compare

public int compare(Object objectA,
                   Object objectB)
Specified by:
compare in interface Comparator
Throws:
ClassCastException - if objects are not ItemObjects.

equals

public boolean equals(Object object)
Specified by:
equals in interface Comparator

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved