Großmarkt

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

Constructor Summary
CmpOpoNumbers()
           
 
Method Summary
 int compare(Object o1, Object o2)
          The actual comparison.
 
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
 

Constructor Detail

CmpOpoNumbers

public CmpOpoNumbers()
Method Detail

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.

Großmarkt