java.lang.Object
com.google.gerrit.server.patch.filediff.Edit

public abstract class Edit extends Object
A modified region between 2 versions of the same content. This is the Gerrit entity class corresponding to Edit and is needed to ensure immutability when included as fields of the diff persisted caches.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jgit.diff.Edit
     
    abstract int
    Start of a region in sequence A.
    abstract int
    Start of a region in sequence B.
    static Edit
    create(int beginA, int endA, int beginB, int endB)
     
    abstract int
    End of a region in sequence A.
    abstract int
    End of a region in sequence B.
    static Edit
    fromJGitEdit(org.eclipse.jgit.diff.Edit jgitEdit)
     
    static org.eclipse.jgit.diff.Edit
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Edit

      public Edit()
  • Method Details

    • create

      public static Edit create(int beginA, int endA, int beginB, int endB)
    • fromJGitEdit

      public static Edit fromJGitEdit(org.eclipse.jgit.diff.Edit jgitEdit)
    • toJGitEdit

      public static org.eclipse.jgit.diff.Edit toJGitEdit(Edit e)
    • asJGitEdit

      public org.eclipse.jgit.diff.Edit asJGitEdit()
    • beginA

      public abstract int beginA()
      Start of a region in sequence A.
    • endA

      public abstract int endA()
      End of a region in sequence A.
    • beginB

      public abstract int beginB()
      Start of a region in sequence B.
    • endB

      public abstract int endB()
      End of a region in sequence B.