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
Modifier and TypeFieldDescriptionprivate final VariationDiff<L>
The field for thediff
record component.private final Relevance
The field for therelevance
record component.Fields inherited from interface org.variantsync.diffdetective.variation.diff.source.VariationDiffSource
Unknown
-
Constructor Summary
ConstructorDescriptionViewSource
(VariationDiff<L> diff, Relevance relevance) Creates an instance of aViewSource
record class. -
Method Summary
Modifier and TypeMethodDescriptiondiff()
Returns the value of thediff
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.Returns the value of therelevance
record component.final String
toString()
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 thediff
record component.- Returns:
- the value of the
diff
record component
-
relevance
Returns the value of therelevance
record component.- Returns:
- the value of the
relevance
record component
-