Record Class ViewSource<L extends Label>
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.diff.view.ViewSource<L>
- Record Components:
diff- The original variation diff on which the variation diff with this source is a view on.relevance- The relevance predicate that was used to create the view.
- All Implemented Interfaces:
VariationDiffSource
public record ViewSource<L extends Label>(VariationDiff<L extends Label> diff, Relevance relevance)
extends Record
implements VariationDiffSource
A
VariationDiffSource that remembers that a variation diff represents a view on
another variation diff.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VariationDiff<L> The field for thediffrecord component.private final RelevanceThe field for therelevancerecord component.Fields inherited from interface org.variantsync.diffdetective.variation.diff.source.VariationDiffSource
Unknown -
Constructor Summary
ConstructorsConstructorDescriptionViewSource(VariationDiff<L> diff, Relevance relevance) Creates an instance of aViewSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondiff()Returns the value of thediffrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therelevancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
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). -
diff
Returns the value of thediffrecord component.- Returns:
- the value of the
diffrecord component
-
relevance
Returns the value of therelevancerecord component.- Returns:
- the value of the
relevancerecord component
-