com.metamatrix.toolbox.ui.widget.table
Interface TableComparator

All Known Implementing Classes:
DefaultConsoleTableComparator, DefaultTableComparator, DeployTableSorter, DirectoryEntryTableComparator

public interface TableComparator

Since:
Golden Gate
Version:
Golden Gate
Author:
John P. A. Verhaeg

Method Summary
 int compare(java.lang.Object firstValue, java.lang.Object secondValue, int columnIndex)
          compare the first and second values
 

Method Detail

compare

int compare(java.lang.Object firstValue,
            java.lang.Object secondValue,
            int columnIndex)
compare the first and second values

Parameters:
columnIndex - the index of the table column being compared
firstValueRow - the model row index of the firstValue
secondValueRow - the model row index of the secondValue
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.


Copyright © 2009. All Rights Reserved.