com.ibm.commerce.order.calculation
Class CodeComparator
java.lang.Object
com.ibm.commerce.order.calculation.CodeComparator
- All Implemented Interfaces:
- java.util.Comparator
- public class CodeComparator
- extends java.lang.Object
- implements java.util.Comparator
A comparator class for ordering calculation codes. Calculation codes are order by the following:
- sequence (ascending).
- calculation code ID (ascending).
Field Summary |
static java.lang.String |
COPYRIGHT
The IBM copyright notice field. |
Method Summary |
int |
compare(java.lang.Object aObj1, java.lang.Object aObj2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The IBM copyright notice field.
- See Also:
- Constant Field Values
CodeComparator
public CodeComparator()
- Constructor for CodeComparator.
compare
public int compare(java.lang.Object aObj1,
java.lang.Object aObj2)
-
- Specified by:
- compare in interface java.util.Comparator
-
- Parameters:
- aObj1 - the first calculation code.
- aObj2 - the second calculation code.
- Returns:
- the result of the comparision.
- See Also:
- Comparator.compare(Object, Object)
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.