Top Description Methods
com.github.difflib.algorithm

public Interface DiffAlgorithmI<T>

Known Direct Implementers
com.github.difflib.algorithm.myers.MyersDiff, com.github.difflib.algorithm.myers.MyersDiffWithLinearSpace
Type Parameters
<T>
type of data that is diffed.
Imports
java.util.Arrays, .List

Interface of a diff algorithm.
Author
Tobias Warneke ([email protected])

Method Summary

Modifier and TypeMethod and Description
public List<Change>
computeDiff(List<T>
source data
source
,
List<T>
target data
target
,
DiffAlgorithmListener
progress listener
progress
)

Computes the changeset to patch the source list to the target list.

public default List<Change>
computeDiff(T[] source, T[] target, DiffAlgorithmListener progress)

Simple extension to compute a changeset using arrays.

Method Detail

computeDiffback to summary
public List<Change> computeDiff(List<T> source, List<T> target, DiffAlgorithmListener progress)

Computes the changeset to patch the source list to the target list.

Parameters
source:List<T>

source data

target:List<T>

target data

progress:DiffAlgorithmListener

progress listener

computeDiffback to summary
public default List<Change> computeDiff(T[] source, T[] target, DiffAlgorithmListener progress)

Simple extension to compute a changeset using arrays.