Package fr.becpg.common.diff
Class Diff
java.lang.Object
fr.becpg.common.diff.Diff
Class representing one diff operation.
- Author:
- matthieu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this Diff equivalent to another Diff?Getter for the fieldoperation.getText()Getter for the fieldtext.inthashCode()Create a numeric hash value for a Diff.voidsetOperation(Operation operation) Setter for the fieldoperation.voidSetter for the fieldtext.toString()Display a human-readable version of this Diff.
-
Field Details
-
operation
One of: INSERT, DELETE or EQUAL. -
text
The dmp 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 dmp being applied.
-
-
Method Details
-
getOperation
Getter for the field
operation.- Returns:
- a
Operationobject - Since:
- 23.2.1.26
-
setOperation
Setter for the field
operation.- Parameters:
operation- aOperationobject- Since:
- 23.2.1.26
-
getText
Getter for the field
text.- Returns:
- a
Stringobject - Since:
- 23.2.1.26
-
setText
Setter for the field
text.- Parameters:
text- aStringobject- Since:
- 23.2.1.26
-
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?
-