| Package | Description |
|---|---|
| com.github.difflib.patch | |
| com.github.difflib.text | |
| com.github.difflib.text.deltamerge |
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeDelta<T>
Describes the change-delta between original and revised texts.
|
class |
DeleteDelta<T>
Describes the delete-delta between original and revised texts.
|
class |
EqualDelta<T>
This delta contains equal lines of data.
|
class |
InsertDelta<T>
Describes the add-delta between original and revised texts.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractDelta<T> |
AbstractDelta.withChunks(Chunk<T> original,
Chunk<T> revised)
Create a new delta of the actual instance with customized chunk data.
|
AbstractDelta<T> |
ChangeDelta.withChunks(Chunk<T> original,
Chunk<T> revised) |
AbstractDelta<T> |
DeleteDelta.withChunks(Chunk<T> original,
Chunk<T> revised) |
AbstractDelta<T> |
EqualDelta.withChunks(Chunk<T> original,
Chunk<T> revised) |
AbstractDelta<T> |
InsertDelta.withChunks(Chunk<T> original,
Chunk<T> revised) |
| Modifier and Type | Method and Description |
|---|---|
List<AbstractDelta<T>> |
Patch.getDeltas()
Get the list of computed deltas
|
| Modifier and Type | Method and Description |
|---|---|
void |
Patch.addDelta(AbstractDelta<T> delta)
Add the given delta to this patch
|
void |
ConflictOutput.processConflict(VerifyChunk verifyChunk,
AbstractDelta<T> delta,
List<T> result) |
| Modifier and Type | Field and Description |
|---|---|
static Function<InlineDeltaMergeInfo,List<AbstractDelta<String>>> |
DiffRowGenerator.DEFAULT_INLINE_DELTA_MERGER |
static Function<InlineDeltaMergeInfo,List<AbstractDelta<String>>> |
DiffRowGenerator.WHITESPACE_EQUALITIES_MERGER
Merge diffs which are separated by equalities consisting of whitespace only.
|
| Modifier and Type | Method and Description |
|---|---|
DiffRowGenerator.Builder |
DiffRowGenerator.Builder.inlineDeltaMerger(Function<InlineDeltaMergeInfo,List<AbstractDelta<String>>> inlineDeltaMerger)
Provide an inline delta merger for use case specific delta optimizations.
|
| Modifier and Type | Method and Description |
|---|---|
List<AbstractDelta<String>> |
InlineDeltaMergeInfo.getDeltas() |
static List<AbstractDelta<String>> |
DeltaMergeUtils.mergeInlineDeltas(InlineDeltaMergeInfo deltaMergeInfo,
Predicate<List<String>> replaceEquality) |
| Constructor and Description |
|---|
InlineDeltaMergeInfo(List<AbstractDelta<String>> deltas,
List<String> origList,
List<String> revList) |
Copyright © 2009–2025 java-diff-utils. All rights reserved.