T - The type of the compared elements in the 'lines'.public class ChangeDelta<T> extends Delta<T>
Describes the change-delta between original and revised texts.
Delta.TYPEDEFAULT_END, DEFAULT_START| 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(java.util.List<T> target)
Applies this delta as the patch for a given target
|
Delta.TYPE |
getType()
Returns the type of delta
|
void |
verify(java.util.List<T> target)
Verifies that this delta can be used to patch the given text.
|
equals, getOriginal, getRevised, hashCode, lineNumber, toStringpublic void applyTo(java.util.List<T> target) throws java.lang.IllegalStateException
applyTo in class Delta<T>target - the given targetjava.lang.IllegalStateException - if Delta.verify(List) failspublic void verify(java.util.List<T> target) throws java.lang.IllegalStateException
public Delta.TYPE getType()
Delta