Videoautomat

videoautomat
Class ComparatorCurrency<T>

java.lang.Object
  extended by videoautomat.ComparatorCurrency<T>
All Implemented Interfaces:
Serializable, Comparator<T>

public class ComparatorCurrency<T>
extends Object
implements Comparator<T>, 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(T arg0, T arg1)
          Compares CatalogItems 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(T arg0,
                   T arg1)
Compares CatalogItems or CountingStockTableModel.Records.

Specified by:
compare in interface Comparator<T>
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