Record Class PatchString
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.source.PatchString
- Record Components:
getDiff
- The patch as a String.
- All Implemented Interfaces:
TextBasedDiff
,VariationDiffSource
public record PatchString(String getDiff)
extends Record
implements TextBasedDiff, VariationDiffSource
Source for VariationDiffs that were created from a patch given as a String.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thegetDiff
record component.Fields inherited from interface org.variantsync.diffdetective.variation.diff.source.VariationDiffSource
Unknown
-
Constructor Summary
ConstructorDescriptionPatchString
(String getDiff) Creates an instance of aPatchString
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getDiff()
Returns the value of thegetDiff
record component.final int
hashCode()
Returns a hash code value for this object.toString()
Returns a string representation of this record class.
-
Field Details
-
getDiff
The field for thegetDiff
record component.
-
-
Constructor Details
-
PatchString
Creates an instance of aPatchString
record class.- Parameters:
getDiff
- the value for thegetDiff
record 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)
. -
getDiff
Returns the value of thegetDiff
record component.- Specified by:
getDiff
in interfaceTextBasedDiff
- Returns:
- the value of the
getDiff
record component
-