public class DiffResult extends Object
Represents a change between one or several lines. changeType
tells if the change happened in source or target. lineNumber
holds the line number of the first modified line. This line number refers to
a line in source or target, depending on the changeType
value.
changedLines
is a list of strings, each string is a line that is
already highlighted, indicating where the changes are.
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE |
static String |
TARGET |
Constructor and Description |
---|
DiffResult(int linePos,
List<String> changedLines) |
DiffResult(int linePos,
String changedLine) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getChangedLines() |
int |
getLineNumber() |
int |
hashCode() |
void |
setChangedLines(List<String> changedLines) |
void |
setLineNumber(int lineNumber) |
String |
toString() |
public static final String SOURCE
public static final String TARGET
public DiffResult(int linePos, String changedLine)