com.metamatrix.toolbox.ui.widget.table
Class DefaultTableComparator
java.lang.Object
com.metamatrix.toolbox.ui.widget.table.DefaultTableComparator
- All Implemented Interfaces:
- TableComparator
- Direct Known Subclasses:
- DeployTableSorter, DirectoryEntryTableComparator
public class DefaultTableComparator
- extends java.lang.Object
- implements TableComparator
- Since:
- 2.0
- Version:
- 2.0
- Author:
- John P. A. Verhaeg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTableComparator
public DefaultTableComparator()
getInstance
public static DefaultTableComparator getInstance()
- Since:
- 2.0
compare
protected int compare(java.lang.Comparable firstValue,
java.lang.Comparable secondValue)
- Since:
- 2.0
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.
- Since:
- 2.0
ignoresCase
public boolean ignoresCase()
- Since:
- 2.0
setIgnoresCase
public void setIgnoresCase(boolean ignoresCase)
- Since:
- 2.0
Copyright © 2009. All Rights Reserved.