| 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)
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,
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,
DiffAlgorithm<T> algorithm)
Computes the difference between the original and revised list of elements with default diff algorithm
|
static Patch<String> |
DiffUtils.diff(String originalText,
String revisedText)
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> |
DiffAlgorithm.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a
Patch
object. |
default List<Change> |
DiffAlgorithm.diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a
Patch
object. |
| Modifier and Type | Method and Description |
|---|---|
List<Change> |
HistogramDiff.diff(List<T> original,
List<T> revised) |
| Modifier and Type | Method and Description |
|---|---|
List<Change> |
MyersDiff.diff(List<T> original,
List<T> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a
Patch
object. |
| 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–2017 java-diff-utils. All rights reserved.