|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdifflib.Patch<T>
public class Patch<T>
Describes the patch holding all deltas between the original and revised texts.
Constructor Summary | |
---|---|
Patch()
|
Method Summary | |
---|---|
void |
addDelta(Delta<T> delta)
Add the given delta to this patch |
List<T> |
applyTo(List<T> target)
Apply this patch to the given target |
List<Delta<T>> |
getDeltas()
Get the list of computed deltas |
List<T> |
restore(List<T> 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<T> applyTo(List<T> target) throws PatchFailedException
PatchFailedException
- if can't apply patchpublic List<T> restore(List<T> target)
target
- the given target
public void addDelta(Delta<T> delta)
delta
- the given deltapublic List<Delta<T>> getDeltas()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |