class TwoColumnDiff extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TwoColumnDiff.Item |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
current |
java.util.List<TwoColumnDiff.Item> |
currentDiff |
private java.lang.Object[] |
reference |
java.util.List<TwoColumnDiff.Item> |
referenceDiff |
(package private) boolean |
referenceReversed |
| Constructor and Description |
|---|
TwoColumnDiff(java.lang.Object[] reference,
java.lang.Object... current) |
| Modifier and Type | Method and Description |
|---|---|
private void |
diff() |
private void |
twoColumnDiffFromScript(Diff.Change script,
java.lang.Object[] a,
java.lang.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 java.util.List<TwoColumnDiff.Item> referenceDiff
public java.util.List<TwoColumnDiff.Item> currentDiff
private final java.lang.Object[] reference
private final java.lang.Object[] current
boolean referenceReversed
TwoColumnDiff(java.lang.Object[] reference, java.lang.Object... current)
private void diff()
private void twoColumnDiffFromScript(Diff.Change script, java.lang.Object[] a, java.lang.Object[] b, boolean reversed)
script - diff scripta - reference versionb - current versionreversed - if true use TwoColumnDiff.Item.DiffItemType.REVERSED instead of TwoColumnDiff.Item.DiffItemType.SAME