|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdifflib.Patch
public class Patch
Describes the patch holding all deltas between the original and revised texts.
| Constructor Summary | |
|---|---|
Patch()
|
|
| Method Summary | |
|---|---|
void |
addDelta(Delta delta)
Add the given delta to this patch |
List<?> |
applyTo(List<?> target)
Apply this patch to the given target |
List<Delta> |
getDeltas()
Get the list of computed deltas |
List<?> |
restore(List<?> target)
Restore the text to original. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Patch()
| Method Detail |
|---|
public List<?> applyTo(List<?> target)
throws PatchFailedException
PatchFailedException - if can't apply patchpublic List<?> restore(List<?> target)
target - the given target
public void addDelta(Delta delta)
delta - the given deltapublic List<Delta> getDeltas()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||