public final class ChangeDelta<T> extends Delta<T>
| Constructor and Description |
|---|
ChangeDelta(Chunk<T> original,
Chunk<T> revised)
Creates a change delta with the two given chunks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(List<T> target)
Applies this delta as the patch for a given target
|
void |
restore(List<T> target)
Cancel this delta for a given revised text.
|
String |
toString() |
equals, getOriginal, getRevised, getType, hashCode, verifypublic void applyTo(List<T> target) throws PatchFailedException
DeltaapplyTo in class Delta<T>target - the given targetPatchFailedExceptionpublic void restore(List<T> target)
DeltaCopyright © 2009–2017 java-diff-utils. All rights reserved.