Record Class PatchDiffParseOptions
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.datasets.PatchDiffParseOptions
- Record Components:
diffStoragePolicy
- Decides if and how unix diffs should be remembered in a parsedPatchDiff
when parsing commits.variationDiffParseOptions
- Options for parsing a patch to aVariationDiff
. For more information, seeVariationDiffParseOptions
.
public record PatchDiffParseOptions(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy, VariationDiffParseOptions variationDiffParseOptions)
extends Record
Parse options that should be used when parsing commits and patches within a commit history.
- Author:
- Paul Bittner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PatchDiffParseOptions
Default value for PatchDiffParseOptions that does not remember parsed unix diffs and uses the default value for the parsing VariationDiffs (VariationDiffParseOptions.Default
).private final PatchDiffParseOptions.DiffStoragePolicy
The field for thediffStoragePolicy
record component.private final VariationDiffParseOptions
The field for thevariationDiffParseOptions
record component. -
Constructor Summary
ConstructorDescriptionPatchDiffParseOptions
(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy, VariationDiffParseOptions variationDiffParseOptions) Creates an instance of aPatchDiffParseOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediffStoragePolicy
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thevariationDiffParseOptions
record component.withAnnotationParser
(AnnotationParser annotationParser) Creates PatchDiffParseOptions with the given annotation parser.withDiffStoragePolicy
(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy) Creates PatchDiffParseOptions with the given policy for storing diffs.
-
Field Details
-
diffStoragePolicy
The field for thediffStoragePolicy
record component. -
variationDiffParseOptions
The field for thevariationDiffParseOptions
record component. -
Default
Default value for PatchDiffParseOptions that does not remember parsed unix diffs and uses the default value for the parsing VariationDiffs (VariationDiffParseOptions.Default
).
-
-
Constructor Details
-
PatchDiffParseOptions
public PatchDiffParseOptions(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy, VariationDiffParseOptions variationDiffParseOptions) Creates an instance of aPatchDiffParseOptions
record class.- Parameters:
diffStoragePolicy
- the value for thediffStoragePolicy
record componentvariationDiffParseOptions
- the value for thevariationDiffParseOptions
record component
-
-
Method Details
-
withAnnotationParser
Creates PatchDiffParseOptions with the given annotation parser. -
withDiffStoragePolicy
public PatchDiffParseOptions withDiffStoragePolicy(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy) Creates PatchDiffParseOptions with the given policy for storing diffs. -
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)
. -
diffStoragePolicy
Returns the value of thediffStoragePolicy
record component.- Returns:
- the value of the
diffStoragePolicy
record component
-
variationDiffParseOptions
Returns the value of thevariationDiffParseOptions
record component.- Returns:
- the value of the
variationDiffParseOptions
record component
-