Class 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 Detail

      • Edit

        public Edit()
    • Method Detail

      • 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.