Package com.github.difflib.algorithm
Interface DiffAlgorithmI<T>
-
- Type Parameters:
T
- type of data that is diffed.
- All Known Implementing Classes:
HistogramDiff
,MyersDiff
public interface DiffAlgorithmI<T>
Interface of a diff algorithm.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.default java.util.List<Change>
computeDiff(T[] source, T[] target, DiffAlgorithmListener progress)
Simple extension to compute a changeset using arrays.
-
-
-
Method Detail
-
computeDiff
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.- Parameters:
source
- source datatarget
- target dataprogress
- progress listener- Returns:
-
computeDiff
default java.util.List<Change> computeDiff(T[] source, T[] target, DiffAlgorithmListener progress)
Simple extension to compute a changeset using arrays.- Parameters:
source
-target
-progress
-- Returns:
-
-