difflib
Interface DiffAlgorithm

All Known Implementing Classes:
MyersDiff

public interface DiffAlgorithm

The general interface for computing diffs between two texts

Author:
Dmitry Naumenko

Method Summary
 Patch diff(java.util.List<?> original, java.util.List<?> revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
 Patch diff(java.lang.Object[] original, java.lang.Object[] revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
 

Method Detail

diff

Patch diff(java.lang.Object[] original,
           java.lang.Object[] revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.

Parameters:
original - the original text
revised - the revised text
Returns:
the patch

diff

Patch diff(java.util.List<?> original,
           java.util.List<?> revised)
Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.

Parameters:
original - the original text
revised - the revised text
Returns:
the patch