class TwoColumnDiff extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TwoColumnDiff.Item |
Modifier and Type | Field and Description |
---|---|
private Object[] |
current |
List<TwoColumnDiff.Item> |
currentDiff |
private Object[] |
reference |
List<TwoColumnDiff.Item> |
referenceDiff |
(package private) boolean |
referenceReversed |
Constructor and Description |
---|
TwoColumnDiff(Object[] reference,
Object[] current) |
Modifier and Type | Method and Description |
---|---|
private void |
diff() |
private void |
twoColumnDiffFromScript(Diff.Change script,
Object[] a,
Object[] b,
boolean reversed)
The result from the diff algorithm is a "script" (a compressed description of the changes)
This method expands this script into a full two column description.
|
public List<TwoColumnDiff.Item> referenceDiff
public List<TwoColumnDiff.Item> currentDiff
boolean referenceReversed
TwoColumnDiff(Object[] reference, Object[] current)
private void diff()
private void twoColumnDiffFromScript(Diff.Change script, Object[] a, Object[] b, boolean reversed)
script
- diff scripta
- reference versionb
- current versionreversed
- if true
use TwoColumnDiff.Item.DiffItemType.REVERSED
instead of TwoColumnDiff.Item.DiffItemType.SAME