Record Class JStubTest.Result
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JStubTest.Result
- Enclosing class:
JStubTest
public static record JStubTest.Result(boolean result, honeyroasted.almonds.ConstraintTree tree, List<JTestCondition.Result> results)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(boolean result, honeyroasted.almonds.ConstraintTree tree, List<JTestCondition.Result> results) Creates an instance of aResultrecord 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.booleanresult()Returns the value of theresultrecord component.results()Returns the value of theresultsrecord component.toString()Returns a string representation of this record class.voidtoString(StringBuilder sb, String indent, String prefix) honeyroasted.almonds.ConstraintTreetree()Returns the value of thetreerecord component.
-
Constructor Details
-
Result
public Result(boolean result, honeyroasted.almonds.ConstraintTree tree, List<JTestCondition.Result> results) Creates an instance of aResultrecord class.- Parameters:
result- the value for theresultrecord componenttree- the value for thetreerecord componentresults- the value for theresultsrecord component
-
-
Method Details
-
toString
-
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 thecomparemethod from their corresponding wrapper classes. -
result
public boolean result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
tree
public honeyroasted.almonds.ConstraintTree tree()Returns the value of thetreerecord component.- Returns:
- the value of the
treerecord component
-
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-