T - The type of the compared elements in the data 'lines'.public final class ChangeDelta<T> extends AbstractDelta<T>
| Constructor and Description |
|---|
ChangeDelta(Chunk<T> source,
Chunk<T> target)
Creates a change delta with the two given chunks.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyFuzzyToAt(java.util.List<T> target,
int fuzz,
int position)
Apply patch fuzzy.
|
protected void |
applyTo(java.util.List<T> target) |
protected void |
restore(java.util.List<T> target) |
java.lang.String |
toString() |
AbstractDelta<T> |
withChunks(Chunk<T> original,
Chunk<T> revised)
Create a new delta of the actual instance with customized chunk data.
|
equals, getSource, getTarget, getType, hashCode, verifyAntApplyTo, verifyChunkToFitTargetprotected void applyTo(java.util.List<T> target) throws PatchFailedException
applyTo in class AbstractDelta<T>PatchFailedExceptionprotected void restore(java.util.List<T> target)
restore in class AbstractDelta<T>protected void applyFuzzyToAt(java.util.List<T> target, int fuzz, int position) throws PatchFailedException
AbstractDeltaapplyFuzzyToAt in class AbstractDelta<T>target - the list this patch will be applied tofuzz - the number of elements to ignore before/after the patched elementsposition - the position this patch will be applied to. ignores source.getPosition()PatchFailedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic AbstractDelta<T> withChunks(Chunk<T> original, Chunk<T> revised)
AbstractDeltawithChunks in class AbstractDelta<T>