| Package | Description |
|---|---|
| com.github.difflib | |
| com.github.difflib.patch | |
| 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.
|
static Patch<String> |
UnifiedDiffUtils.parseUnifiedDiff(List<String> diff)
Parse the given text in unified format and creates the list of deltas for it.
|
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
UnifiedDiffUtils.generateUnifiedDiff(String original,
String revised,
List<String> originalLines,
Patch<String> patch,
int contextSize)
generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing
the Patch.
|
static <T> List<T> |
DiffUtils.patch(List<T> original,
Patch<T> patch)
Patch the original text with given patch
|
static <T> List<T> |
DiffUtils.unpatch(List<T> revised,
Patch<T> patch)
Unpatch the revised text for a given patch
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Patch<T> |
Patch.generate(List<T> original,
List<T> revised,
List<Change> changes) |
| Modifier and Type | Method and Description |
|---|---|
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.