Class Edit
- 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 toEdit
and is needed to ensure immutability when included as fields of the diff persisted caches.
-
-
Constructor Summary
Constructors Constructor Description Edit()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.diff.Edit
asJGitEdit()
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)
-
-
-
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.
-
-