Record Class DiffMatchPatch.LinesToCharsResult
java.lang.Object
java.lang.Record
com.jsql.model.injection.strategy.blind.patch.DiffMatchPatch.LinesToCharsResult
- Enclosing class:
DiffMatchPatch
protected static record DiffMatchPatch.LinesToCharsResult(String chars1, String chars2, List<String> lineArray)
extends Record
Internal class for returning results from diff_linesToChars().
Other less paranoid languages just use a three-element array.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinesToCharsResult(String chars1, String chars2, List<String> lineArray) Creates an instance of aLinesToCharsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchars1()Returns the value of thechars1record component.chars2()Returns the value of thechars2record component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelineArrayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LinesToCharsResult
Creates an instance of aLinesToCharsResultrecord class.- Parameters:
chars1- the value for thechars1record componentchars2- the value for thechars2record componentlineArray- the value for thelineArrayrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
chars1
Returns the value of thechars1record component.- Returns:
- the value of the
chars1record component
-
chars2
Returns the value of thechars2record component.- Returns:
- the value of the
chars2record component
-
lineArray
Returns the value of thelineArrayrecord component.- Returns:
- the value of the
lineArrayrecord component
-