public static class DiffProcessor.Diff
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
DiffProcessor.Operation |
operation
One of: INSERT, DELETE or EQUAL.
|
int |
originalOffset |
int |
replacementOffset |
java.lang.String |
text
The text associated with this diff operation.
|
Constructor and Description |
---|
Diff(DiffProcessor.Operation operation,
java.lang.String text)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Is this Diff equivalent to another Diff?
|
DiffProcessor.Operation |
getOperation() |
int |
getOriginalOffset() |
int |
getReplacementOffset() |
java.lang.String |
getText() |
int |
hashCode()
Create a numeric hash value for a Diff.
|
java.lang.String |
toString()
Display a human-readable version of this Diff.
|
public DiffProcessor.Operation operation
public java.lang.String text
public int originalOffset
public int replacementOffset
public Diff(DiffProcessor.Operation operation, java.lang.String text)
operation
- One of INSERT, DELETE or EQUAL.text
- The text being applied.public DiffProcessor.Operation getOperation()
public java.lang.String getText()
public int getOriginalOffset()
public int getReplacementOffset()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Another Diff to compare against.