Package com.logicaldoc.comparison.basic
Class DiffMatch.Diff
java.lang.Object
com.logicaldoc.comparison.basic.DiffMatch.Diff
- Enclosing class:
- DiffMatch
Class representing one diff operation.
-
Field Summary
Modifier and TypeFieldDescriptionOne of: INSERT, DELETE or EQUAL.The text associated with this diff operation. -
Constructor Summary
-
Method Summary
-
Field Details
-
operation
One of: INSERT, DELETE or EQUAL. -
text
The text associated with this diff operation.
-
-
Constructor Details
-
Diff
Constructor. Initializes the diff with the provided values.- Parameters:
operation
- One of INSERT, DELETE or EQUAL.text
- The text being applied.
-
-
Method Details
-
toString
Display a human-readable version of this Diff. -
hashCode
public int hashCode()Create a numeric hash value for a Diff. This function is not used by DMP. -
equals
Is this Diff equivalent to another Diff?
-