T - The type of the compared elements in the 'lines'.public interface DiffAlgorithm<T,R extends PatchResult<T>>
| Modifier and Type | Method and Description |
|---|---|
Patch<T,R> |
diff(java.util.List<T> original,
java.util.List<T> revised)
Computes the difference between the original sequence and the revised
sequence and returns it as a
Patch object. |
Patch<T,R> |
diff(T[] original,
T[] revised)
Computes the difference between the original sequence and the revised
sequence and returns it as a
Patch object. |
Patch<T,R> diff(T[] original, T[] revised)
Patch object.original - The original sequence. Must not be null.revised - The revised sequence. Must not be null.null.Patch<T,R> diff(java.util.List<T> original, java.util.List<T> revised)
Patch object.original - The original sequence. Must not be null.revised - The revised sequence. Must not be null.null.