Record Class ConstructVerdict.Counterexample
java.lang.Object
java.lang.Record
org.ek9lang.compiler.symbolic.ConstructVerdict.Counterexample
- Record Components:
obligation- a short label for the obligation class refuted (e.g."DIV_BY_ZERO")witness- the witnessing input asname=value(e.g."count=0")
- Enclosing class:
ConstructVerdict
-
Constructor Summary
ConstructorsConstructorDescriptionCounterexample(String obligation, String witness) Creates an instance of aCounterexamplerecord 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.Returns the value of theobligationrecord component.final StringtoString()Returns a string representation of this record class.witness()Returns the value of thewitnessrecord component.
-
Constructor Details
-
Counterexample
Creates an instance of aCounterexamplerecord class.- Parameters:
obligation- the value for theobligationrecord componentwitness- the value for thewitnessrecord component
-
-
Method Details
-
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). -
obligation
Returns the value of theobligationrecord component.- Returns:
- the value of the
obligationrecord component
-
witness
-