Package org.webcat.diff
Class DiffPatcher<T>
- java.lang.Object
-
- org.webcat.diff.DiffPatcher<T>
-
public class DiffPatcher<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description DiffPatcher(List<T> list1, DiffList<T> diffs, Comparator<T> comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchApplication<T>
apply(List<T> list)
Merge a set of patches onto the list.PatchList<T>
getPatches()
-
-
-
Method Detail
-
apply
public PatchApplication<T> apply(List<T> list)
Merge a set of patches onto the list. Return a patched list, as well as an array of true/false values indicating which patches were applied.- Parameters:
list
- Old list.- Returns:
- Two element Object array, containing the new list and an array of boolean values.
-
-