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.
  • Constructor Details

    • RowComparator

      public RowComparator(ITable table, Column[] sortColumns)
      Constructs a comparator sorting rows of the given table by the given columns, using each column's Comparable implementation.
      Parameters:
      table - the wrapped table to be sorted.
      sortColumns - the columns to be used for sorting in the given order.
  • Method Details