Package com.github.difflib.patch
Class EqualDelta<T>
java.lang.Object
com.github.difflib.patch.AbstractDelta<T>
com.github.difflib.patch.EqualDelta<T>
- All Implemented Interfaces:
Serializable
This delta contains equal lines of data. Therefore nothing is to do in applyTo and restore.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyFuzzyToAt(List<T> target, int fuzz, int delta) Apply patch fuzzy.protected voidprotected voidtoString()withChunks(Chunk<T> original, Chunk<T> revised) Create a new delta of the actual instance with customized chunk data.Methods inherited from class com.github.difflib.patch.AbstractDelta
equals, getSource, getTarget, getType, hashCode, verifyAntApplyTo, verifyChunkToFitTarget
-
Constructor Details
-
EqualDelta
-
-
Method Details
-
applyTo
- Specified by:
applyToin classAbstractDelta<T>- Throws:
PatchFailedException
-
restore
- Specified by:
restorein classAbstractDelta<T>
-
applyFuzzyToAt
Apply patch fuzzy.- Overrides:
applyFuzzyToAtin classAbstractDelta<T>- Parameters:
target- the list this patch will be applied tofuzz- the number of elements to ignore before/after the patched elementsdelta- the position this patch will be applied to. ignoressource.getPosition()- See Also:
-
toString
-
withChunks
Description copied from class:AbstractDeltaCreate a new delta of the actual instance with customized chunk data.- Specified by:
withChunksin classAbstractDelta<T>
-