org.apache.commons.jrcs.diff
Interface DiffAlgorithm

All Known Implementing Classes:
MyersDiff, SimpleDiff

public interface DiffAlgorithm

A simple interface for implementations of differencing algorithms.

Version:
$Revision: 1.6 $ $Date: 2003/10/13 08:00:24 $
Author:
Brian McBride

Method Summary
 Revision diff(java.lang.Object[] orig, java.lang.Object[] rev)
          Computes the difference between the original sequence and the revised sequence and returns it as a Revision object.
 

Method Detail

diff

Revision diff(java.lang.Object[] orig,
              java.lang.Object[] rev)
              throws DifferentiationFailedException
Computes the difference between the original sequence and the revised sequence and returns it as a Revision object.

The revision can be used to construct the revised sequence from the original sequence.

Parameters:
rev - the revised text
Returns:
the revision script.
Throws:
DifferentiationFailedException - if the diff could not be computed.


Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs