Record Class LineGraphImportOptions<L extends Label>
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.serialize.LineGraphImportOptions<L>
- Record Components:
graphFormat
-GraphFormat
treeFormat
-VariationDiffLabelFormat
nodeFormat
-DiffNodeLabelFormat
edgeFormat
-EdgeLabelFormat
public record LineGraphImportOptions<L extends Label>(GraphFormat graphFormat, VariationDiffLabelFormat treeFormat, DiffNodeLabelFormat<? super L extends Label> nodeFormat, EdgeLabelFormat<? super L extends Label> edgeFormat)
extends Record
Options necessary for importing a line graph.
This records contains information for importing a
VariationDiff
from a line graph, such as the graph format and tree and node layouts.-
Field Summary
Modifier and TypeFieldDescriptionprivate final EdgeLabelFormat<? super L>
The field for theedgeFormat
record component.private final GraphFormat
The field for thegraphFormat
record component.private final DiffNodeLabelFormat<? super L>
The field for thenodeFormat
record component.private final VariationDiffLabelFormat
The field for thetreeFormat
record component. -
Constructor Summary
ConstructorDescriptionLineGraphImportOptions
(GraphFormat graphFormat, VariationDiffLabelFormat treeFormat, DiffNodeLabelFormat<? super L> nodeFormat, EdgeLabelFormat<? super L> edgeFormat) Creates an instance of aLineGraphImportOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionEdgeLabelFormat<? super L>
Returns the value of theedgeFormat
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegraphFormat
record component.final int
hashCode()
Returns a hash code value for this object.DiffNodeLabelFormat<? super L>
Returns the value of thenodeFormat
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetreeFormat
record component.
-
Field Details
-
graphFormat
The field for thegraphFormat
record component. -
treeFormat
The field for thetreeFormat
record component. -
nodeFormat
The field for thenodeFormat
record component. -
edgeFormat
The field for theedgeFormat
record component.
-
-
Constructor Details
-
LineGraphImportOptions
public LineGraphImportOptions(GraphFormat graphFormat, VariationDiffLabelFormat treeFormat, DiffNodeLabelFormat<? super L> nodeFormat, EdgeLabelFormat<? super L> edgeFormat) Creates an instance of aLineGraphImportOptions
record class.- Parameters:
graphFormat
- the value for thegraphFormat
record componenttreeFormat
- the value for thetreeFormat
record componentnodeFormat
- the value for thenodeFormat
record componentedgeFormat
- the value for theedgeFormat
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)
. -
graphFormat
Returns the value of thegraphFormat
record component.- Returns:
- the value of the
graphFormat
record component
-
treeFormat
Returns the value of thetreeFormat
record component.- Returns:
- the value of the
treeFormat
record component
-
nodeFormat
Returns the value of thenodeFormat
record component.- Returns:
- the value of the
nodeFormat
record component
-
edgeFormat
Returns the value of theedgeFormat
record component.- Returns:
- the value of the
edgeFormat
record component
-