Class HistogramDiff<T>
- java.lang.Object
-
- com.github.difflib.algorithm.jgit.HistogramDiff<T>
-
- All Implemented Interfaces:
DiffAlgorithmI<T>
public class HistogramDiff<T> extends java.lang.Object implements DiffAlgorithmI<T>
HistorgramDiff using JGit - Library. This one is much more performant than the orginal Myers implementation.
-
-
Constructor Summary
Constructors Constructor Description HistogramDiff()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Change>
computeDiff(java.util.List<T> source, java.util.List<T> target, DiffAlgorithmListener progress)
Computes the changeset to patch the source list to the target list.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.difflib.algorithm.DiffAlgorithmI
computeDiff
-
-
-
-
Method Detail
-
computeDiff
public java.util.List<Change> computeDiff(java.util.List<T> source, java.util.List<T> target, DiffAlgorithmListener progress)
Description copied from interface:DiffAlgorithmI
Computes the changeset to patch the source list to the target list.- Specified by:
computeDiff
in interfaceDiffAlgorithmI<T>
- Parameters:
source
- source datatarget
- target dataprogress
- progress listener- Returns:
-
-