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
ConstructorsConstructorDescriptionComputedConstraint(PartialRelation partialRelation) Creates an instance of aComputedConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanequals(LiteralEqualityHelper helper, Constraint other) final inthashCode()Returns a hash code value for this object.name()Returns the value of thepartialRelationrecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aComputedConstraintrecord class.- Parameters:
partialRelation- the value for thepartialRelationrecord component
-
-
Method Details
-
name
- Specified by:
namein interfaceConstraint
-
getParameters
- Specified by:
getParametersin interfaceConstraint
-
getReduction
- Specified by:
getReductionin interfaceConstraint
-
equals
- Specified by:
equalsin interfaceConstraint
-
toReferenceString
- Specified by:
toReferenceStringin 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 thepartialRelationrecord component.- Returns:
- the value of the
partialRelationrecord component
-