Record Class Noul
java.lang.Object
java.lang.Record
ai.redouble.nucleo.harness.decision.Noul
- Record Components:
instructions- the statement to judgewhenTrue- what a yes means, or null withwhenFalsenullwhenFalse- what a no means, or null withwhenTruenull
- All Implemented Interfaces:
Question
public record Noul(String instructions, String whenTrue, String whenFalse)
extends Record
implements Question
The probability that a statement is true. The instructions are the statement, written so
that it is testable; the two descriptions, when given, say what a yes and a no mean, and
come together or not at all.
- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Constructor Summary
Constructors -
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 theinstructionsrecord component.static NoulThe statement alone.final StringtoString()Returns a string representation of this record class.Returns the value of thewhenFalserecord component.whenTrue()Returns the value of thewhenTruerecord component.
-
Constructor Details
-
Noul
-
-
Method Details
-
of
-
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). -
instructions
Returns the value of theinstructionsrecord component.- Specified by:
instructionsin interfaceQuestion- Returns:
- the value of the
instructionsrecord component
-
whenTrue
-
whenFalse
-