public class RowDifference extends Object
| Constructor and Description |
|---|
RowDifference(Row row,
Row actualRow)
Create a row difference.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumnDifference(ColumnDifference columnDifference)
Adds a difference for a column
|
void |
addMissingColumn(Column column)
Adds a column that was not found in the actual row
|
Row |
getActualRow() |
ColumnDifference |
getColumnDifference(String columnName) |
List<ColumnDifference> |
getColumnDifferences() |
List<Column> |
getMissingColumns() |
Row |
getRow() |
boolean |
isBetterMatch(RowDifference rowComparison) |
boolean |
isMatch() |
public Row getRow()
public Row getActualRow()
public List<ColumnDifference> getColumnDifferences()
public List<Column> getMissingColumns()
public ColumnDifference getColumnDifference(String columnName)
columnName - The column to find the difference for, not nullpublic void addColumnDifference(ColumnDifference columnDifference)
columnDifference - The difference, not nullpublic void addMissingColumn(Column column)
column - The missing column, not nullpublic boolean isBetterMatch(RowDifference rowComparison)
rowComparison - The result to compare with, not nullpublic boolean isMatch()
Copyright © 2016. All Rights Reserved.