Package com.github.difflib.patch
Class DeleteDelta<T>
java.lang.Object
com.github.difflib.patch.AbstractDelta<T>
com.github.difflib.patch.DeleteDelta<T>
- Type Parameters:
T
- The type of the compared elements in the 'lines'.
- All Implemented Interfaces:
Serializable
Describes the delete-delta between original and revised texts.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteDelta
(Chunk<T> original, Chunk<T> revised) Creates a change delta with the two given chunks. -
Method Summary
Methods inherited from class com.github.difflib.patch.AbstractDelta
applyFuzzyToAt, equals, getSource, getTarget, getType, hashCode, verifyAntApplyTo, verifyChunkToFitTarget
-
Constructor Details
-
DeleteDelta
Creates a change delta with the two given chunks.- Parameters:
original
- The original chunk. Must not benull
.revised
- The original chunk. Must not benull
.
-
-
Method Details
-
applyTo
- Specified by:
applyTo
in classAbstractDelta<T>
- Throws:
PatchFailedException
-
restore
- Specified by:
restore
in classAbstractDelta<T>
-
toString
-
withChunks
Description copied from class:AbstractDelta
Create a new delta of the actual instance with customized chunk data.- Specified by:
withChunks
in classAbstractDelta<T>
-