Record Class Search
java.lang.Object
java.lang.Record
org.variantsync.diffdetective.variation.tree.view.relevance.Search
- All Implemented Interfaces:
Predicate<VariationNode<?,
,?>> Relevance
Relevance predicate that searches for implementation artifacts in a variation tree.
This relevance predicate is the implementation of Equation 7 in our SPLC'23 paper.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifact()
Returns the value of theartifact
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.boolean
test
(VariationNode<?, ?> v) toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.variation.tree.view.relevance.Relevance
computeViewNodes
-
Field Details
-
artifact
The field for theartifact
record component.
-
-
Constructor Details
-
Search
Creates an instance of aSearch
record class.- Parameters:
artifact
- the value for theartifact
record component
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<VariationNode<?,
?>>
-
parametersToString
- Specified by:
parametersToString
in interfaceRelevance
- Returns:
- The parameters set for this particular relevance predicate, as a comma-separated string (without braces).
-
getFunctionName
- Specified by:
getFunctionName
in interfaceRelevance
- Returns:
- The name of this relevance predicate's type.
-
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)
. -
artifact
Returns the value of theartifact
record component.- Returns:
- the value of the
artifact
record component
-