com.metamatrix.console.ui.views
Class DefaultConsoleTableComparator

java.lang.Object
  extended by com.metamatrix.console.ui.views.DefaultConsoleTableComparator
All Implemented Interfaces:
TableComparator

public class DefaultConsoleTableComparator
extends java.lang.Object
implements TableComparator


Method Summary
 int compare(java.lang.Object firstValue, java.lang.Object secondValue, int columnIndex)
          compare the first and second values
static DefaultConsoleTableComparator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultConsoleTableComparator getInstance()

compare

public int compare(java.lang.Object firstValue,
                   java.lang.Object secondValue,
                   int columnIndex)
Description copied from interface: TableComparator
compare the first and second values

Specified by:
compare in interface TableComparator
columnIndex - the index of the table column being compared
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.