Package org.assertj.core.util.diff
Interface DiffAlgorithm<T>
- Type Parameters:
T
- The type of the compared elements in the 'lines'.
- All Known Implementing Classes:
MyersDiff
public interface DiffAlgorithm<T>
Copy from https://code.google.com/p/java-diff-utils/.
The general interface for computing diffs between two lists of elements of type T.
- Author:
- Dmitry Naumenko
-
Method Summary
-
Method Details
-
diff
Computes the difference between the original sequence and the revised sequence and returns it as aPatch
object.- Parameters:
original
- The original sequence. Must not benull
.revised
- The revised sequence. Must not benull
.- Returns:
- The patch representing the diff of the given sequences. Never
null
.
-