T
- The type of the compared elements in the 'lines'.public class InsertDelta<T> extends Delta<T>
Describes the add-delta between original and revised texts.
Delta.TYPE
DEFAULT_END, DEFAULT_START
Constructor and Description |
---|
InsertDelta(Chunk<T> original,
Chunk<T> revised)
Creates an insert 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
|
java.lang.String |
toString() |
void |
verify(java.util.List<T> target)
Verifies that this delta can be used to patch the given text.
|
equals, formatLines, getOriginal, getRevised, hashCode, lineNumber
public void applyTo(java.util.List<T> target) throws java.lang.IllegalStateException
public void verify(java.util.List<T> target) throws java.lang.IllegalStateException
Delta
public Delta.TYPE getType()
Delta
public java.lang.String toString()
toString
in class java.lang.Object