Class Patch<T>

  • Type Parameters:
    T - The type of the compared elements in the 'lines'.

    public class Patch<T>
    extends Object
    Copy from https://code.google.com/p/java-diff-utils/.

    Describes the patch holding all deltas between the original and revised texts.

    Author:
    Dmitry Naumenko
    • Constructor Detail

      • Patch

        public Patch()
    • Method Detail

      • addDelta

        public void addDelta​(Delta<T> delta)
        Add the given delta to this patch
        Parameters:
        delta - the given delta
      • getDeltas

        public List<Delta<T>> getDeltas()
        Get the list of computed deltas
        Returns:
        the deltas