Record Class ComputedConstraint
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.literal.ComputedConstraint
- All Implemented Interfaces:
Constraint
public record ComputedConstraint(PartialRelation partialRelation)
extends Record
implements Constraint
-
Constructor Summary
ConstructorDescriptionComputedConstraint
(PartialRelation partialRelation) Creates an instance of aComputedConstraint
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
equals
(LiteralEqualityHelper helper, Constraint other) final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thepartialRelation
record component.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 tools.refinery.logic.Constraint
aggregateBy, aggregateBy, arity, call, call, call, callTransitive, count, count, invalidIndex, leftJoinBy, leftJoinBy
-
Constructor Details
-
ComputedConstraint
Creates an instance of aComputedConstraint
record class.- Parameters:
partialRelation
- the value for thepartialRelation
record component
-
-
Method Details
-
name
- Specified by:
name
in interfaceConstraint
-
getParameters
- Specified by:
getParameters
in interfaceConstraint
-
getReduction
- Specified by:
getReduction
in interfaceConstraint
-
equals
- Specified by:
equals
in interfaceConstraint
-
toReferenceString
- Specified by:
toReferenceString
in interfaceConstraint
-
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)
. -
partialRelation
Returns the value of thepartialRelation
record component.- Returns:
- the value of the
partialRelation
record component
-