Class MeyersDiffWithLinearSpace<T>
- java.lang.Object
-
- com.github.difflib.algorithm.myers.MeyersDiffWithLinearSpace<T>
-
- All Implemented Interfaces:
DiffAlgorithmI<T>
public class MeyersDiffWithLinearSpace<T> extends Object implements DiffAlgorithmI<T>
- Author:
- tw
-
-
Constructor Summary
Constructors Constructor Description MeyersDiffWithLinearSpace()MeyersDiffWithLinearSpace(BiPredicate<T,T> equalizer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Change>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.-
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
-
-
-
-
Constructor Detail
-
MeyersDiffWithLinearSpace
public MeyersDiffWithLinearSpace()
-
MeyersDiffWithLinearSpace
public MeyersDiffWithLinearSpace(BiPredicate<T,T> equalizer)
-
-
Method Detail
-
computeDiff
public List<Change> computeDiff(List<T> source, List<T> target, DiffAlgorithmListener progress)
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:
-
factory
public static DiffAlgorithmFactory factory()
Factory to create instances of this specific diff algorithm.
-
-