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, List<String> changedLines)
public DiffResult(int linePos, String changedLine)
public boolean equals(Object obj)
equals
in class Object
public List<String> getChangedLines()
public int getLineNumber()
public int hashCode()
hashCode
in class Object
public void setChangedLines(List<String> changedLines)
public void setLineNumber(int lineNumber)
public String toString()
toString
in class Object