org.omus.data
Interface DataTable.Comparator

Enclosing class:
DataTable

public static interface DataTable.Comparator

DataTable.Comparators can be passed to the sort method of DataTable to allow precise control over the sort order.


Method Summary
 int compare(DataRow row1, DataRow row2)
          Compares its two arguments for order.
 

Method Detail

compare

public int compare(DataRow row1,
                   DataRow row2)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.