Record Class LineGraphFileSource
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.source.LineGraphFileSource
- Record Components:
graphHeader
- The first line of the VariationDiff in the linegraph file (starting with"t #
).file
- The path to the linegraph file.
- All Implemented Interfaces:
VariationDiffSource
public record LineGraphFileSource(String graphHeader, Path file)
extends Record
implements VariationDiffSource
A source for VariationDiffs that were parsed from a linegraph file.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Path
The field for thefile
record component.private final String
The field for thegraphHeader
record component.Fields inherited from interface org.variantsync.diffdetective.variation.diff.source.VariationDiffSource
Unknown
-
Constructor Summary
ConstructorDescriptionLineGraphFileSource
(String graphHeader, Path file) Creates an instance of aLineGraphFileSource
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.Returns the value of thegraphHeader
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
graphHeader
The field for thegraphHeader
record component. -
file
The field for thefile
record component.
-
-
Constructor Details
-
LineGraphFileSource
Creates an instance of aLineGraphFileSource
record class.- Parameters:
graphHeader
- the value for thegraphHeader
record componentfile
- the value for thefile
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)
. -
graphHeader
Returns the value of thegraphHeader
record component.- Returns:
- the value of the
graphHeader
record component
-
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-