public class Diff.Part
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
action |
static int |
ADDED
The string this diff-part cares about has been added in the new version
|
static int |
DELETED
The string this diff-part cares about has been removed in the new version
|
private int |
posNew |
private int |
posOld |
static int |
UNCHANGED
The string this diff-part cares about has not been changed
|
Constructor and Description |
---|
Diff.Part(int action,
int posOld,
int posNew) |
public static final int UNCHANGED
public static final int ADDED
public static final int DELETED
private final int action
private final int posOld
private final int posNew
public int getAction()
public int getPosOld()
public int getPosNew()
public java.lang.String getString()
public java.lang.String toString()
toString
in class java.lang.Object
STRING
"+ STRING
"- STRING
"