Package org.eclipse.jgit.patch
Class HunkHeader.OldImage
- java.lang.Object
-
- org.eclipse.jgit.patch.HunkHeader.OldImage
-
- Direct Known Subclasses:
CombinedHunkHeader.CombinedOldImage
- Enclosing class:
- HunkHeader
public abstract static class HunkHeader.OldImage extends java.lang.ObjectDetails about an old image of the file.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intlineCountTotal number of lines this hunk covers in this file.(package private) intnAddedNumber of lines added by the post-image not in this file.(package private) intnDeletedNumber of lines deleted by the post-image from this file.(package private) intstartLineFirst line number the hunk starts on in this file.
-
Constructor Summary
Constructors Constructor Description OldImage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AbbreviatedObjectIdgetId()intgetLineCount()intgetLinesAdded()intgetLinesDeleted()intgetStartLine()
-
-
-
Field Detail
-
startLine
int startLine
First line number the hunk starts on in this file.
-
lineCount
int lineCount
Total number of lines this hunk covers in this file.
-
nDeleted
int nDeleted
Number of lines deleted by the post-image from this file.
-
nAdded
int nAdded
Number of lines added by the post-image not in this file.
-
-
Method Detail
-
getStartLine
public int getStartLine()
- Returns:
- first line number the hunk starts on in this file.
-
getLineCount
public int getLineCount()
- Returns:
- total number of lines this hunk covers in this file.
-
getLinesDeleted
public int getLinesDeleted()
- Returns:
- number of lines deleted by the post-image from this file.
-
getLinesAdded
public int getLinesAdded()
- Returns:
- number of lines added by the post-image not in this file.
-
getId
public abstract AbbreviatedObjectId getId()
- Returns:
- object id of the pre-image file.
-
-