Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      com.bea.commerce.ebusiness.price.engine.DiscountComparator

All Implemented Interfaces:
  Comparator, Serializable

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.

See Also:
  Serialized Form

Field Summary
`static String` | `cName`

Constructor Summary
`DiscountComparator()`

Method Summary
`int` | `compare(Object objectA, Object objectB)` throws class cast exception if objects are not QualificationDiscountDefs.
`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

### DiscountComparator

    public DiscountComparator()

Method Detail

### compare

    public int compare(Object objectA,
                       Object objectB)

  throws class cast exception if objects are not QualificationDiscountDefs.

  Specified by:
    `compare` in interface `Comparator`

### equals

    public boolean equals(Object object)

  Specified by:
    `equals` in interface `Comparator`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved