Record Class JTestCondition.Constraint
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestCondition.Constraint
- All Implemented Interfaces:
JTestCondition
- Enclosing interface:
JTestCondition
public static record JTestCondition.Constraint(JTestConstraint.Wrapper constraint, Boolean status, JTestCondition.Op operation, JTestCondition.Branch branches)
extends Record
implements JTestCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jypestub.model.test.JTestCondition
JTestCondition.Branch, JTestCondition.Constraint, JTestCondition.InferConstraint, JTestCondition.Instantiation, JTestCondition.InstantiationConstraint, JTestCondition.Op, JTestCondition.Result, JTestCondition.Status, JTestCondition.ThrowsConstraint, JTestCondition.Wrapper -
Field Summary
Fields inherited from interface honeyroasted.jypestub.model.test.JTestCondition
SUBTYPE_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionConstraint(JTestConstraint.Wrapper constraint, Boolean status, JTestCondition.Op operation, JTestCondition.Branch branches) Creates an instance of aConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranches()Returns the value of thebranchesrecord component.Returns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.status()Returns the value of thestatusrecord component.test(honeyroasted.jype.system.JTypeSystem system, honeyroasted.almonds.ConstraintTree tree) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Constraint
public Constraint(JTestConstraint.Wrapper constraint, Boolean status, JTestCondition.Op operation, JTestCondition.Branch branches) Creates an instance of aConstraintrecord class.- Parameters:
constraint- the value for theconstraintrecord componentstatus- the value for thestatusrecord componentoperation- the value for theoperationrecord componentbranches- the value for thebranchesrecord component
-
-
Method Details
-
test
public JTestCondition.Result test(honeyroasted.jype.system.JTypeSystem system, honeyroasted.almonds.ConstraintTree tree) - Specified by:
testin interfaceJTestCondition
-
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). -
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
branches
Returns the value of thebranchesrecord component.- Returns:
- the value of the
branchesrecord component
-