Package org.assertj.core.util.diff
Class Patch<T>
java.lang.Object
org.assertj.core.util.diff.Patch<T>
- Type Parameters:
T
- The type of the compared elements in the 'lines'.
Copy from https://code.google.com/p/java-diff-utils/.
Describes the patch holding all deltas between the original and revised texts.
- Author:
- Dmitry Naumenko
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Patch
public Patch()
-
-
Method Details
-
applyTo
Apply this patch to the given target- Parameters:
target
- the list to patch- Returns:
- the patched text
- Throws:
IllegalStateException
- if can't apply patch
-
addDelta
Add the given delta to this patch- Parameters:
delta
- the given delta
-
getDeltas
Get the list of computed deltas- Returns:
- the deltas
-