Repo init

This commit is contained in:
dm.naumenko@gmail.com
2009-09-15 19:36:19 +00:00
commit 483cc2ee69
18 changed files with 1448 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package difflib;
import java.util.*;
/**
* The general interface for computing diffs between two texts
*
* @author <a href="dm.naumenko@gmail.com">Dmitry Naumenko</a>
*/
public interface DiffAlgorithm {
/**
* Computes the difference between the original
* sequence and the revised sequence and returns it
* as a {@link difflib.Patch Patch} object.
*
* @param original the original text
* @param revised the revised text
* @return the patch
*/
public Patch diff(Object[] original, Object[] revised);
/**
* Computes the difference between the original
* sequence and the revised sequence and returns it
* as a {@link difflib.Patch Patch} object.
*
* @param original the original text
* @param revised the revised text
* @return the patch
*/
public Patch diff(List<?> original, List<?> revised);
}