S - type of sequence.public class MyersDiff<S extends Sequence>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected HashedSequence<S> |
a
The first text to be compared.
|
protected HashedSequence<S> |
b
The second text to be compared.
|
protected HashedSequenceComparator<S> |
cmp
Comparison function for sequences.
|
protected EditList |
edits
The list of edits found during the last call to
calculateEdits(Edit) |
static DiffAlgorithm |
INSTANCE
Singleton instance of MyersDiff.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateEdits(int beginA,
int endA,
int beginB,
int endB)
Calculates the differences between a given part of A against another given part of B
|
static void |
main(java.lang.String[] args) |
public static final DiffAlgorithm INSTANCE
protected EditList edits
calculateEdits(Edit)protected HashedSequenceComparator<S extends Sequence> cmp
protected HashedSequence<S extends Sequence> a
protected HashedSequence<S extends Sequence> b
protected void calculateEdits(int beginA,
int endA,
int beginB,
int endB)
beginA - start of the part of A which should be compared (0<=beginAendA - end of the part of A which should be compared (beginA<=endAbeginB - start of the part of B which should be compared (0<=beginBendB - end of the part of B which should be compared (beginB<=endBpublic static void main(java.lang.String[] args)
args - two filenames specifying the contents to be diffedCopyright © 2012. All Rights Reserved.