Class MeyersDiff<T>
java.lang.Object
com.github.difflib.algorithm.myers.MeyersDiff<T>
- All Implemented Interfaces:
DiffAlgorithmI<T>
A clean-room implementation of Eugene Meyers greedy differencing algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeDiff(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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DiffAlgorithmI
computeDiff
-
Constructor Details
-
MeyersDiff
public MeyersDiff() -
MeyersDiff
-
-
Method Details
-
computeDiff
Computes the changeset to patch the source list to the target list. Return empty diff if get the error while procession the difference.- Specified by:
computeDiffin interfaceDiffAlgorithmI<T>- Parameters:
source- source datatarget- target dataprogress- progress listener- Returns:
-
factory
Factory to create instances of this specific diff algorithm.
-