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
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 |
ComparatorCurrency
public ComparatorCurrency()
- Constructs a new
ComparatorCurrency
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)