|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdifflib.Delta
difflib.InsertDelta
public class InsertDelta
Describes the add-delta between original and revised texts.
| Constructor Summary | |
|---|---|
InsertDelta(Chunk original,
Chunk revised)
|
|
| Method Summary | |
|---|---|
void |
applyTo(java.util.List<java.lang.Object> target)
Applies this delta as the patch for a given target |
void |
restore(java.util.List<java.lang.Object> target)
Cancel this delta for a given revised text. |
java.lang.String |
toString()
|
void |
verify(java.util.List<?> target)
Verifies that this delta can be used to patch the given text. |
| Methods inherited from class difflib.Delta |
|---|
equals, getOriginal, getRevised, hashCode, setOriginal, setRevised |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InsertDelta(Chunk original,
Chunk revised)
| Method Detail |
|---|
public void applyTo(java.util.List<java.lang.Object> target)
throws PatchFailedException
applyTo in class Deltatarget - the given target
PatchFailedExceptionpublic void restore(java.util.List<java.lang.Object> target)
restore in class Deltatarget - the given revised text
public void verify(java.util.List<?> target)
throws PatchFailedException
Delta
verify in class Deltatarget - the text to patch.
PatchFailedException - if the patch cannot be applied.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||