org.dbunit.dataset
Class SortedTable.RowComparator
java.lang.Object
org.dbunit.dataset.SortedTable.AbstractRowComparator
org.dbunit.dataset.SortedTable.RowComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- SortedTable
protected static class SortedTable.RowComparator
- extends SortedTable.AbstractRowComparator
Compares the rows with each other in order to sort them in the correct order using the
data type and the Comparable implementation the current column has.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedTable.RowComparator
public SortedTable.RowComparator(ITable table,
Column[] sortColumns)
compare
protected int compare(Column column,
Object value1,
Object value2)
throws TypeCastException
- Specified by:
compare
in class SortedTable.AbstractRowComparator
- Parameters:
column
- The column to be comparedvalue1
- The first value of the given columnvalue2
- The second value of the given column
- Returns:
- 0 if both values are considered equal.
- Throws:
TypeCastException
Copyright © 2002-2012. All Rights Reserved.