The Comparisons
After the adds and changes above (also a delete is done), the state of the row is compared against the new row. By default, the framework implementations should work fine, and you don't need to do anything. However, in the rare case, you may need to override the following methods:

protected void compareAddedRow(ListBody originalListBody,
    ListBody newListBody)
protected void compareChangedRow(ListBody originalListBody,
    ListBody newListBody)