E - the type of compared elementspublic interface Delta<E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Delta.Type
The kind of modification to apply on the list.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void verify(List<E> target) throws PatchException
target - the list to modifyPatchException - if the delta cannot be appliedvoid apply(List<E> target) throws PatchException
target - the list to modifyPatchException - if the delta cannot be appliedvoid restore(List<E> target) throws PatchException
target - the list to modifyPatchException - if the delta cannot be appliedDelta.Type getType()
Copyright © 2004–2015 XWiki. All rights reserved.