Package | Description |
---|---|
com.github.difflib | |
com.github.difflib.patch | |
com.github.difflib.unifieddiff |
This is the new implementation of UnifiedDiff Tools.
|
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<T> |
DiffUtils.patch(java.util.List<T> original,
Patch<T> patch)
Patch the original text with given patch
|
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
Patch.applyFuzzy(java.util.List<T> target,
int maxFuzz) |
protected void |
AbstractDelta.applyFuzzyToAt(java.util.List<T> target,
int fuzz,
int position)
Apply patch fuzzy.
|
protected void |
ChangeDelta.applyFuzzyToAt(java.util.List<T> target,
int fuzz,
int position) |
protected abstract void |
AbstractDelta.applyTo(java.util.List<T> target) |
protected void |
ChangeDelta.applyTo(java.util.List<T> target) |
protected void |
DeleteDelta.applyTo(java.util.List<T> target) |
protected void |
EqualDelta.applyTo(java.util.List<T> target) |
protected void |
InsertDelta.applyTo(java.util.List<T> target) |
java.util.List<T> |
Patch.applyTo(java.util.List<T> target)
Apply this patch to the given target
|
private int |
Patch.findPositionFuzzy(Patch.PatchApplyingContext<T> ctx,
AbstractDelta<T> delta) |
private int |
Patch.findPositionWithFuzz(Patch.PatchApplyingContext<T> ctx,
AbstractDelta<T> delta,
int fuzz) |
private int |
Patch.findPositionWithFuzzAndMoreDelta(Patch.PatchApplyingContext<T> ctx,
AbstractDelta<T> delta,
int fuzz,
int moreDelta) |
void |
ConflictOutput.processConflict(VerifyChunk verifyChunk,
AbstractDelta<T> delta,
java.util.List<T> result) |
protected VerifyChunk |
AbstractDelta.verifyAntApplyTo(java.util.List<T> target) |
VerifyChunk |
Chunk.verifyChunk(java.util.List<T> target)
Verifies that this chunk's saved text matches the corresponding text in
the given sequence.
|
VerifyChunk |
Chunk.verifyChunk(java.util.List<T> target,
int fuzz,
int position)
Verifies that this chunk's saved text matches the corresponding text in
the given sequence.
|
protected VerifyChunk |
AbstractDelta.verifyChunkToFitTarget(java.util.List<T> target)
Verify the chunk of this delta, to fit the target.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
UnifiedDiff.applyPatchTo(java.util.function.Predicate<java.lang.String> findFile,
java.util.List<java.lang.String> originalLines) |