Record Class Constraints.ClaferInfo
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.Constraints.ClaferInfo
- Enclosing class:
Constraints
public static record Constraints.ClaferInfo(String uniqueId, Constraints.Cardinality cardinality)
extends Record
A clafer and its cardinality.
-
Constructor Summary
ConstructorsConstructorDescriptionClaferInfo(String uniqueId, Constraints.Cardinality cardinality) Creates an instance of aClaferInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecardinalityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.
-
Constructor Details
-
ClaferInfo
Creates an instance of aClaferInforecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentcardinality- the value for thecardinalityrecord 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). -
uniqueId
-
cardinality
Returns the value of thecardinalityrecord component.- Returns:
- the value of the
cardinalityrecord component
-