Modifier and Type | Method and Description |
---|---|
List<E> |
apply(List<E> target)
Apply the patch.
|
List<E> |
restore(List<E> target)
Invert the patch.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
List<E> apply(List<E> target) throws PatchException
target
- the list on which to apply the patchPatchException
- failed to apply the patchList<E> restore(List<E> target) throws PatchException
target
- the list on which to apply an inverted version of the patchPatchException
- failed to apply the patchCopyright © 2004–2017 XWiki. All rights reserved.