Package | Description |
---|---|
com.github.difflib | |
com.github.difflib.algorithm | |
com.github.difflib.algorithm.jgit | |
com.github.difflib.algorithm.myers | |
com.github.difflib.text |
Modifier and Type | Method and Description |
---|---|
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised) |
static <T> Patch<T> |
DiffUtils.diff(List<T> source,
List<T> target,
BiPredicate<T,T> equalizer)
Computes the difference between the original and revised list of elements with default diff algorithm
|
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised,
DiffAlgorithmI<T> algorithm)
Computes the difference between the original and revised list of elements with default diff algorithm
|
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised,
DiffAlgorithmI<T> algorithm,
DiffAlgorithmListener progress)
Computes the difference between the original and revised list of elements with default diff algorithm
|
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
List<T> revised,
DiffAlgorithmListener progress)
Computes the difference between the original and revised list of elements with default diff algorithm
|
static Patch<String> |
DiffUtils.diff(String sourceText,
String targetText,
DiffAlgorithmListener progress)
Computes the difference between the original and revised text.
|
static Patch<String> |
DiffUtils.diffInline(String original,
String revised)
Computes the difference between the given texts inline.
|
Modifier and Type | Class and Description |
---|---|
class |
DifferentiationFailedException
Thrown whenever the differencing engine cannot produce the differences between two revisions of ta text.
|
Modifier and Type | Method and Description |
---|---|
List<Change> |
DiffAlgorithmI.computeDiff(List<T> source,
List<T> target,
DiffAlgorithmListener progress)
Computes the changeset to patch the source list to the target list.
|
default List<Change> |
DiffAlgorithmI.computeDiff(T[] source,
T[] target,
DiffAlgorithmListener progress)
Simple extension to compute a changeset using arrays.
|
Modifier and Type | Method and Description |
---|---|
List<Change> |
HistogramDiff.computeDiff(List<T> source,
List<T> target,
DiffAlgorithmListener progress) |
Modifier and Type | Method and Description |
---|---|
List<Change> |
MyersDiff.computeDiff(List<T> source,
List<T> target,
DiffAlgorithmListener progress)
Computes the changeset to patch the source list to the target list.
|
Modifier and Type | Method and Description |
---|---|
List<DiffRow> |
DiffRowGenerator.generateDiffRows(List<String> original,
List<String> revised)
Get the DiffRows describing the difference between original and revised texts using the given patch.
|
List<DiffRow> |
DiffRowGenerator.generateDiffRows(List<String> original,
Patch<String> patch)
Generates the DiffRows describing the difference between original and revised texts using the given patch.
|
Copyright © 2009–2018 java-diff-utils. All rights reserved.