Record Class VariationTreeDiffSource
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.source.VariationTreeDiffSource
- All Implemented Interfaces:
VariationDiffSource
public record VariationTreeDiffSource(VariationTreeSource before, VariationTreeSource after)
extends Record
implements VariationDiffSource
Describes that a
VariationDiff
was created from two VariationTree
s.-
Field Summary
Modifier and TypeFieldDescriptionprivate final VariationTreeSource
The field for theafter
record component.private final VariationTreeSource
The field for thebefore
record component.Fields inherited from interface org.variantsync.diffdetective.variation.diff.source.VariationDiffSource
Unknown
-
Constructor Summary
ConstructorDescriptionVariationTreeDiffSource
(VariationTreeSource before, VariationTreeSource after) Creates an instance of aVariationTreeDiffSource
record class. -
Method Summary
Modifier and TypeMethodDescriptionafter()
Returns the value of theafter
record component.before()
Returns the value of thebefore
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.toString()
Returns a string representation of this record class.
-
Field Details
-
before
The field for thebefore
record component. -
after
The field for theafter
record component.
-
-
Constructor Details
-
VariationTreeDiffSource
Creates an instance of aVariationTreeDiffSource
record class.- Parameters:
before
- the value for thebefore
record componentafter
- the value for theafter
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)
. -
before
Returns the value of thebefore
record component.- Returns:
- the value of the
before
record component
-
after
Returns the value of theafter
record component.- Returns:
- the value of the
after
record component
-