public class PatchHunk
extends java.lang.Object
PatchEntry.| Constructor and Description | 
|---|
PatchHunk()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addLine(PatchHunkLine line)
Adds a  
PatchHunkLine instance to the patch hunk. | 
int | 
getFromFileLineCount()
Gets the from-file line count for the patch hunk. 
 | 
int | 
getFromFileLineNumber()
Gets the from-file line number for the patch hunk. 
 | 
PatchHunkLine[] | 
getLines()
Gets all  
PatchHunkLine instances in the patch hunk. | 
int | 
getToFileLineCount()
Gets the to-file line count for the patch hunk. 
 | 
int | 
getToFileLineNumber()
Gets the to-file line number for the patch hunk. 
 | 
void | 
setFromFileLineCount(int fromFileLineCount)
Sets the from-file line count for the patch hunk. 
 | 
void | 
setFromFileLineNumber(int fromFileLineNumber)
Sets the from-file line number for the patch hunk. 
 | 
void | 
setToFileLineCount(int toFileLineCount)
Sets the to-file line count for the patch hunk. 
 | 
void | 
setToFileLineNumber(int toFileLineNumber)
Sets the to-file line number for the patch hunk. 
 | 
java.lang.String | 
toString()  | 
public void setFromFileLineNumber(int fromFileLineNumber)
fromFileLineNumber - the from-file line number.public int getFromFileLineNumber()
public void setFromFileLineCount(int fromFileLineCount)
fromFileLineCount - the from-file line count.public int getFromFileLineCount()
public void setToFileLineNumber(int toFileLineNumber)
toFileLineNumber - the to-file line number.public int getToFileLineNumber()
public void setToFileLineCount(int toFileLineCount)
toFileLineCount - the to-file line count.public int getToFileLineCount()
public void addLine(PatchHunkLine line)
PatchHunkLine instance to the patch hunk.line - the patch hunk line.public PatchHunkLine[] getLines()
PatchHunkLine instances in the patch hunk.public java.lang.String toString()
toString in class java.lang.Object