Class Diff
java.lang.Object
com.jsql.model.injection.strategy.blind.patch.Diff
- All Implemented Interfaces:
Comparable<Diff>
Class representing one diff operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanIs this Diff equivalent to another Diff?getText()inthashCode()Create a numeric hash value for a Diff.voidsetOperation(DiffMatchPatch.Operation operation) voidtoString()Display a human-readable version of this Diff.
-
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? -
compareTo
- Specified by:
compareToin interfaceComparable<Diff>
-
getOperation
-
setOperation
-
getText
-
setText
-