Class MeyersDiffWithLinearSpace<T>
java.lang.Object
com.github.difflib.algorithm.myers.MeyersDiffWithLinearSpace<T>
- All Implemented Interfaces:
DiffAlgorithmI<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbuildScript(MeyersDiffWithLinearSpace<T>.DiffData data, int start1, int end1, int start2, int end2, Consumer<Integer> progress) private MeyersDiffWithLinearSpace<T>.SnakebuildSnake(MeyersDiffWithLinearSpace<T>.DiffData data, int start, int diag, int end1, int end2) computeDiff(List<T> source, List<T> target, DiffAlgorithmListener progress) Computes the changeset to patch the source list to the target list.static DiffAlgorithmFactoryfactory()Factory to create instances of this specific diff algorithm.private MeyersDiffWithLinearSpace<T>.SnakegetMiddleSnake(MeyersDiffWithLinearSpace<T>.DiffData data, int start1, int end1, int start2, int end2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.difflib.algorithm.DiffAlgorithmI
computeDiff
-
Field Details
-
equalizer
-
-
Constructor Details
-
MeyersDiffWithLinearSpace
public MeyersDiffWithLinearSpace() -
MeyersDiffWithLinearSpace
-
-
Method Details
-
computeDiff
Description copied from interface:DiffAlgorithmIComputes the changeset to patch the source list to the target list.- Specified by:
computeDiffin interfaceDiffAlgorithmI<T>- Parameters:
source- source datatarget- target dataprogress- progress listener- Returns:
-
buildScript
private void buildScript(MeyersDiffWithLinearSpace<T>.DiffData data, int start1, int end1, int start2, int end2, Consumer<Integer> progress) -
getMiddleSnake
private MeyersDiffWithLinearSpace<T>.Snake getMiddleSnake(MeyersDiffWithLinearSpace<T>.DiffData data, int start1, int end1, int start2, int end2) -
buildSnake
private MeyersDiffWithLinearSpace<T>.Snake buildSnake(MeyersDiffWithLinearSpace<T>.DiffData data, int start, int diag, int end1, int end2) -
factory
Factory to create instances of this specific diff algorithm.
-