Package com.logicaldoc.comparison.basic
Class DiffMatch.Diff
- java.lang.Object
 - 
- com.logicaldoc.comparison.basic.DiffMatch.Diff
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description DiffMatch.OperationoperationOne of: INSERT, DELETE or EQUAL.StringtextThe text associated with this diff operation. 
- 
Constructor Summary
Constructors Constructor Description Diff(DiffMatch.Operation operation, String text)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Is this Diff equivalent to another Diff?inthashCode()Create a numeric hash value for a Diff.StringtoString()Display a human-readable version of this Diff. 
 - 
 
- 
- 
Field Detail
- 
operation
public DiffMatch.Operation operation
One of: INSERT, DELETE or EQUAL. 
- 
text
public String text
The text associated with this diff operation. 
 - 
 
- 
Constructor Detail
- 
Diff
public Diff(DiffMatch.Operation operation, String text)
Constructor. Initializes the diff with the provided values.- Parameters:
 operation- One of INSERT, DELETE or EQUAL.text- The text being applied.
 
 - 
 
- 
Method Detail
- 
toString
public String 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. 
 - 
 
 -