Top Description Methods
org.assertj.core.util.diff

public Interface DiffAlgorithm<T>

Known Direct Implementers
org.assertj.core.util.diff.myers.MyersDiff
Type Parameters
<T>
The type of the compared elements in the 'lines'.
Imports
java.util.List

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

Modifier and TypeMethod and Description
public Patch<T>

Returns:

The patch representing the diff of the given sequences. Never null.
diff
(List<T>
The original sequence. Must not be null.
original
,
List<T>
The revised sequence. Must not be null.
revised
)

Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.

Method Detail

diffback to summary
public 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.

Parameters
original:List<T>

The original sequence. Must not be null.

revised:List<T>

The revised sequence. Must not be null.

Returns:Patch<T>

The patch representing the diff of the given sequences. Never null.