|
||||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class difflib.Delta |
|---|
Delta.TYPE |
| Constructor Summary | |
|---|---|
InsertDelta(Chunk original,
Chunk revised)
|
|
| Method Summary | |
|---|---|
void |
applyTo(List<Object> target)
Applies this delta as the patch for a given target |
Delta.TYPE |
getType()
Returns the type of delta |
void |
restore(List<Object> target)
Cancel this delta for a given revised text. |
String |
toString()
|
void |
verify(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(List<Object> target)
throws PatchFailedException
applyTo in class Deltatarget - the given target
PatchFailedExceptionpublic void restore(List<Object> target)
restore in class Deltatarget - the given revised text
public void verify(List<?> target)
throws PatchFailedException
Delta
verify in class Deltatarget - the text to patch.
PatchFailedException - if the patch cannot be applied.public Delta.TYPE getType()
Delta
getType in class Deltapublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||