Interface DiffAlgorithm

  • All Known Implementing Classes:
    MyersDiff

    public interface DiffAlgorithm
    A simple interface for implementations of differencing algorithms.
    Version:
    $Revision: 1.1 $ $Date: 2006/03/12 00:24:21 $
    Author:
    Brian McBride
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Revision diff​(Object[] orig, Object[] rev)
      Computes the difference between the original sequence and the revised sequence and returns it as a org.suigeneris.jrcs.diff.Revision Revision object.
    • Method Detail

      • diff

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

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

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