T
- The type of the compared elements in the 'lines'.MyersDiff
public interface DiffAlgorithm<T>
The general interface for computing diffs between two lists of elements of type T.
Modifier and Type | Method | Description |
---|---|---|
Patch<T> |
diff(List<T> original,
List<T> revised) |
Computes the difference between the original sequence and the revised
sequence and returns it as a
Patch object. |
Patch<T> diff(List<T> original, List<T> revised)
Patch
object.original
- The original sequence. Must not be null
.revised
- The revised sequence. Must not be null
.null
.Copyright © 2014–2019. All rights reserved.