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,Source
Source for VariationDiffs that were created from a patch given as a String.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatchString(String getDiff) Creates an instance of aPatchStringrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getDiff()Returns the value of thegetDiffrecord component.Returns a short, one line explanation or identifier of this source.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.util.Source
fullExplanation, functionExplanation, getRootSource, getSourceArguments, getSources, shallowExplanation
-
Field Details
-
getDiff
The field for thegetDiffrecord component.
-
-
Constructor Details
-
PatchString
Creates an instance of aPatchStringrecord class.- Parameters:
getDiff- the value for thegetDiffrecord component
-
-
Method Details
-
getSourceExplanation
Description copied from interface:SourceReturns a short, one line explanation or identifier of this source. The result is used bySource.shallowExplanation()and is formatted together withSource.getSourceArguments()like"sourceExplanation(argument1, argument2)".- Specified by:
getSourceExplanationin interfaceSource
-
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 thegetDiffrecord component.- Specified by:
getDiffin interfaceTextBasedDiff- Returns:
- the value of the
getDiffrecord component
-