videoautomat
Class ComparatorCurrency<T>
java.lang.Object
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
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 |
ComparatorCurrency
public ComparatorCurrency()
- Constructs a new
ComparatorCurrency
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)