Package | Description |
---|---|
com.github.difflib | |
com.github.difflib.algorithm | |
com.github.difflib.algorithm.myers |
Modifier and Type | Method and Description |
---|---|
static <T> Patch<T> |
DiffUtils.diff(java.util.List<T> original,
java.util.List<T> revised,
DiffAlgorithmI<T> algorithm,
DiffAlgorithmListener progress) |
static <T> Patch<T> |
DiffUtils.diff(java.util.List<T> original,
java.util.List<T> revised,
DiffAlgorithmI<T> algorithm,
DiffAlgorithmListener progress,
boolean includeEqualParts)
Computes the difference between the original and revised list of elements
with default diff algorithm
|
static <T> Patch<T> |
DiffUtils.diff(java.util.List<T> original,
java.util.List<T> revised,
DiffAlgorithmListener progress)
Computes the difference between the original and revised list of elements
with default diff algorithm
|
static Patch<java.lang.String> |
DiffUtils.diff(java.lang.String sourceText,
java.lang.String targetText,
DiffAlgorithmListener progress)
Computes the difference between the original and revised text.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Change> |
DiffAlgorithmI.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> |
DiffAlgorithmI.computeDiff(T[] source,
T[] target,
DiffAlgorithmListener progress)
Simple extension to compute a changeset using arrays.
|
Modifier and Type | Method and Description |
---|---|
private PathNode |
MeyersDiff.buildPath(java.util.List<T> orig,
java.util.List<T> rev,
DiffAlgorithmListener progress)
Computes the minimum diffpath that expresses de differences between the
original and revised sequences, according to Gene Myers differencing
algorithm.
|
java.util.List<Change> |
MeyersDiff.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.
|
java.util.List<Change> |
MeyersDiffWithLinearSpace.computeDiff(java.util.List<T> source,
java.util.List<T> target,
DiffAlgorithmListener progress) |