market.swing
Class CmpOpoNumbers
java.lang.Object
|
+--market.swing.CmpOpoNumbers
- All Implemented Interfaces:
- Comparator, Serializable
- public class CmpOpoNumbers
- extends Object
- implements Comparator, Serializable
Compares CIOpenPurchaseOrders
by their stocks' values
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmpOpoNumbers
public CmpOpoNumbers()
compare
public int compare(Object o1,
Object o2)
- The actual comparison.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- the first CIOpenPurchaseOrder.o2
- the second CIOpenPurchaseOrder.
- Returns:
- an int representing the result of the comparison.