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(List<?> original, List<?> revised)
          Computes the difference between the original sequence and the revised sequence and returns it as a Patch object.
 Patch diff(Object[] original, 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(Object[] original,
           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(List<?> original,
           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


Copyright © 2009-2011. All Rights Reserved.