Record Class Constraints.LowerCardinalityConstraint
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.Constraints.LowerCardinalityConstraint
- All Implemented Interfaces:
Constraints.Constraint
- Enclosing class:
Constraints
public static record Constraints.LowerCardinalityConstraint(Constraints.Range range, Constraints.ClaferInfo claferInfo)
extends Record
implements Constraints.Constraint
-
Constructor Summary
ConstructorsConstructorDescriptionLowerCardinalityConstraint(Constraints.Range range, Constraints.ClaferInfo claferInfo) Creates an instance of aLowerCardinalityConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclaferInforecord 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
-
LowerCardinalityConstraint
Creates an instance of aLowerCardinalityConstraintrecord class.- Parameters:
range- the value for therangerecord componentclaferInfo- the value for theclaferInforecord 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
-
claferInfo
Returns the value of theclaferInforecord component.- Returns:
- the value of the
claferInforecord component
-