Package ch.so.agi.mcp.constraint
Record Class SemanticConstraint.ObjectCountSetCondition
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.SemanticConstraint.ObjectCountSetCondition
- All Implemented Interfaces:
SemanticConstraint.SetCondition
- Enclosing interface:
SemanticConstraint
public static record SemanticConstraint.ObjectCountSetCondition(SemanticConstraint.ObjectSetExpression objects, ConstraintExpression.ComparisonOperator operator, BigDecimal threshold)
extends Record
implements SemanticConstraint.SetCondition
Proof-capable SET subset: comparison of
INTERLIS.objectCount(ALL) with a numeric value.-
Constructor Summary
ConstructorsConstructorDescriptionObjectCountSetCondition(SemanticConstraint.ObjectSetExpression objects, ConstraintExpression.ComparisonOperator operator, BigDecimal threshold) Creates an instance of aObjectCountSetConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.objects()Returns the value of theobjectsrecord component.operator()Returns the value of theoperatorrecord component.Returns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectCountSetCondition
public ObjectCountSetCondition(SemanticConstraint.ObjectSetExpression objects, ConstraintExpression.ComparisonOperator operator, BigDecimal threshold) Creates an instance of aObjectCountSetConditionrecord class.- Parameters:
objects- the value for theobjectsrecord componentoperator- the value for theoperatorrecord componentthreshold- the value for thethresholdrecord component
-
-
Method Details
-
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). -
objects
Returns the value of theobjectsrecord component.- Returns:
- the value of the
objectsrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
threshold
Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-