Package org.eclipse.jgit.diff
Class MyersDiff.MiddleEdit
- java.lang.Object
-
- org.eclipse.jgit.diff.MyersDiff.MiddleEdit
-
class MyersDiff.MiddleEdit extends java.lang.Object
A class to help bisecting the sequences a and b to find minimal edit paths. As the arrays are reused for space efficiency, you will need one instance per thread. The entry function is the calculate() method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
MyersDiff.MiddleEdit.BackwardEditPaths
(package private) class
MyersDiff.MiddleEdit.EditPaths
(package private) class
MyersDiff.MiddleEdit.ForwardEditPaths
-
Field Summary
Fields Modifier and Type Field Description (package private) MyersDiff.MiddleEdit.EditPaths
backward
protected int
beginA
protected int
beginB
protected Edit
edit
protected int
endA
protected int
endB
(package private) MyersDiff.MiddleEdit.EditPaths
forward
-
Constructor Summary
Constructors Constructor Description MiddleEdit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Edit
calculate(int beginA, int endA, int beginB, int endB)
(package private) void
initialize(int beginA, int endA, int beginB, int endB)
-
-
-
Field Detail
-
forward
MyersDiff.MiddleEdit.EditPaths forward
-
backward
MyersDiff.MiddleEdit.EditPaths backward
-
beginA
protected int beginA
-
endA
protected int endA
-
beginB
protected int beginB
-
endB
protected int endB
-
edit
protected Edit edit
-
-
Method Detail
-
initialize
void initialize(int beginA, int endA, int beginB, int endB)
-
calculate
Edit calculate(int beginA, int endA, int beginB, int endB)
-
-