Record Class Constraint
java.lang.Object
java.lang.Record
dev.pfaff.altargui.ffi.Constraint
-
Constructor Summary
ConstructorsConstructorDescriptionConstraint
(Expression expr, double strength, RelationalOperator op) Creates an instance of aConstraint
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.expr()
Returns the value of theexpr
record component.final int
hashCode()
Returns a hash code value for this object.op()
Returns the value of theop
record component.double
strength()
Returns the value of thestrength
record component.toString()
Returns a string representation of this record class.withStrength
(double strength)
-
Constructor Details
-
Constraint
Creates an instance of aConstraint
record class.- Parameters:
expr
- the value for theexpr
record componentstrength
- the value for thestrength
record componentop
- the value for theop
record component
-
-
Method Details
-
withStrength
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
expr
Returns the value of theexpr
record component.- Returns:
- the value of the
expr
record component
-
strength
public double strength()Returns the value of thestrength
record component.- Returns:
- the value of the
strength
record component
-
op
Returns the value of theop
record component.- Returns:
- the value of the
op
record component
-