Package | Description |
---|---|
com.github.difflib | |
com.github.difflib.patch | |
com.github.difflib.text | |
com.github.difflib.unifieddiff |
This is the first test version of a multifile diff parser.
|
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,
boolean includeEqualParts) |
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) |
static <T> Patch<T> |
DiffUtils.diff(List<T> original,
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(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.
|
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 originalFileName,
String revisedFileName,
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) |
static <T> Patch<T> |
Patch.generate(List<T> original,
List<T> revised,
List<Change> _changes,
boolean includeEquals) |
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.
|
Modifier and Type | Method and Description |
---|---|
Patch<String> |
UnifiedDiffFile.getPatch() |
Modifier and Type | Method and Description |
---|---|
static UnifiedDiffFile |
UnifiedDiffFile.from(String fromFile,
String toFile,
Patch<String> patch) |
Copyright © 2009–2020 java-diff-utils. All rights reserved.