Class Patch<T>

java.lang.Object
org.webcat.diff.Patch<T>
Type Parameters:
T - the type of object in the list

public class Patch<T> extends Object
Class representing one patch Diff.Operation.
  • Field Details

    • diffs

      public DiffList<T> diffs
    • start1

      public int start1
    • start2

      public int start2
    • length1

      public int length1
    • length2

      public int length2
  • Constructor Details

    • Patch

      public Patch()
      Constructor. Initializes with an empty list of diffs.
  • Method Details

    • toString

      public String toString()
      Emmulate GNU diff's format. Header: @@ -382,8 +481,9 @@ Indicies are printed as 1-based, not 0-based.
      Overrides:
      toString in class Object
      Returns:
      The GNU diff List.