© 2002 BEA Systems, Inc.


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
           
 
Constructor Summary
PriceComparator()
           
 
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
 

Field Detail

cName

public static final java.lang.String cName
Constructor Detail

PriceComparator

public PriceComparator()
Method Detail

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 ItemObjects.

equals

public boolean equals(java.lang.Object object)
Specified by:
equals in interface java.util.Comparator

Overrides:
equals in class java.lang.Object

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved