Class Edit
java.lang.Object
com.google.gerrit.server.patch.filediff.Edit
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.diff.Edit
abstract int
beginA()
Start of a region in sequence A.abstract int
beginB()
Start of a region in sequence B.static Edit
create
(int beginA, int endA, int beginB, int endB) abstract int
endA()
End of a region in sequence A.abstract int
endB()
End of a region in sequence B.static Edit
fromJGitEdit
(org.eclipse.jgit.diff.Edit jgitEdit) static org.eclipse.jgit.diff.Edit
toJGitEdit
(Edit e)
-
Constructor Details
-
Edit
public Edit()
-
-
Method Details
-
create
-
fromJGitEdit
-
toJGitEdit
-
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.
-