Videoautomat

videoautomat
Class ComparatorCurrency

java.lang.Object
  |
  +--videoautomat.ComparatorCurrency
All Implemented Interfaces:
Comparator, Serializable

public class ComparatorCurrency
extends Object
implements Comparator, Serializable

Comparator used to compare NumberValues of CatalogItems and CountingStockTableModel.Records

See Also:
Serialized Form

Constructor Summary
ComparatorCurrency()
          Constructs a new ComparatorCurrency
 
Method Summary
 int compare(Object arg0, Object arg1)
          Compares CatalogItemes or CountingStockTableModel.Records.
 
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

ComparatorCurrency

public ComparatorCurrency()
Constructs a new ComparatorCurrency

Method Detail

compare

public int compare(Object arg0,
                   Object arg1)
Compares CatalogItemes or CountingStockTableModel.Records.

Specified by:
compare in interface Comparator
Returns:
0 if both objects are equal, a positive int if arg0 is greater than arg1, otherwise a negative int.
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)

Videoautomat