|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - the type of compared elementspublic interface Delta<E>
A delta between two version of a list.
| Nested Class Summary | |
|---|---|
static class |
Delta.Type
The kind of modification to apply on the list. |
| Method Summary | |
|---|---|
void |
apply(List<E> target)
Apply the delta on the provided list. |
Chunk<E> |
getNext()
|
Chunk<E> |
getPrevious()
|
Delta.Type |
getType()
|
void |
restore(List<E> target)
Apply the an inverted version of the delta on the provided list. |
void |
verify(List<E> target)
Try to apply the delta on the provided list. |
| Method Detail |
|---|
void verify(List<E> target)
throws PatchException
target - the list to modify
PatchException - if the delta cannot be applied
void apply(List<E> target)
throws PatchException
target - the list to modify
PatchException - if the delta cannot be applied
void restore(List<E> target)
throws PatchException
target - the list to modify
PatchException - if the delta cannot be appliedDelta.Type getType()
Chunk<E> getPrevious()
Chunk<E> getNext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||