public class TableDifference extends Object
| Constructor and Description |
|---|
TableDifference(Table table,
Table actualTable)
Creates a table difference.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMissingRow(Row missingRow)
Adds a rows for which no other row was found in the actual table.
|
Table |
getActualTable() |
RowDifference |
getBestRowDifference(Row row) |
List<RowDifference> |
getBestRowDifferences() |
List<Row> |
getMissingRows() |
Table |
getTable() |
boolean |
isMatch() |
void |
setIfBestRowDifference(RowDifference rowDifference)
Sets the given difference as best row difference if it is better than the current best row difference.
|
void |
setMatchingRow(Row row,
Row actualRow)
Indicates a match for the given row.
|
public Table getTable()
public Table getActualTable()
public List<Row> getMissingRows()
public void addMissingRow(Row missingRow)
missingRow - The missing row, not nullpublic List<RowDifference> getBestRowDifferences()
public RowDifference getBestRowDifference(Row row)
row - The row to get the difference for, not nullpublic void setMatchingRow(Row row, Row actualRow)
row - The row, not nullactualRow - The matching actual row, not nullpublic void setIfBestRowDifference(RowDifference rowDifference)
rowDifference - The difference, null for a matchpublic boolean isMatch()
Copyright © 2017. All rights reserved.