Record Class Constraints.UserConstraint
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.Constraints.UserConstraint
- All Implemented Interfaces:
Constraints.Constraint
- Enclosing class:
Constraints
public static record Constraints.UserConstraint(Constraints.Range range, Constraints.ConstraintInfo constraintInfo)
extends Record
implements Constraints.Constraint
-
Constructor Summary
ConstructorsConstructorDescriptionUserConstraint(Constraints.Range range, Constraints.ConstraintInfo constraintInfo) Creates an instance of aUserConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserConstraint
Creates an instance of aUserConstraintrecord class.- Parameters:
range- the value for therangerecord componentconstraintInfo- the value for theconstraintInforecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
range
Returns the value of therangerecord component.- Specified by:
rangein interfaceConstraints.Constraint- Returns:
- the value of the
rangerecord component
-
constraintInfo
Returns the value of theconstraintInforecord component.- Returns:
- the value of the
constraintInforecord component
-