public class Diff extends Object
| Constructor and Description |
|---|
Diff() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFromFileName()
Gets the name of the first file that was compared with this Diff (the file "from" which the changes were made,
i.e. the "left" file of the diff).
|
List<String> |
getHeaderLines()
The header lines of the diff.
|
List<Hunk> |
getHunks()
The list if all
Hunks which contain all changes that are part of this Diff. |
Hunk |
getLatestHunk()
Gets the last
Hunk of changes that is part of this Diff. |
String |
getToFileName()
Gets the name of the second file that was compared with this Diff (the file "to" which the changes were made,
i.e. the "right" file of the diff).
|
void |
setFromFileName(String fromFileName) |
void |
setHeaderLines(List<String> headerLines) |
void |
setHunks(List<Hunk> hunks) |
void |
setToFileName(String toFileName) |
public List<String> getHeaderLines()
public String getFromFileName()
public String getToFileName()
public List<Hunk> getHunks()
Hunks which contain all changes that are part of this Diff.public void setFromFileName(String fromFileName)
public void setToFileName(String toFileName)
Copyright © 2016. All rights reserved.