Record Class JTestCondition.Result
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestCondition.Result
- Enclosing interface:
JTestCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static JTestCondition.Resultfail()static JTestCondition.Resultfinal inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.booleanresult()Returns the value of theresultrecord component.static JTestCondition.Resultsuccess()static JTestCondition.Resultfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
message- the value for themessagerecord componentresult- the value for theresultrecord component
-
-
Method Details
-
success
-
success
-
fail
-
fail
-
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. -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
result
public boolean result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-