Package xyz.tcheeric.jev
Record Class Question.Noul
java.lang.Object
java.lang.Record
xyz.tcheeric.jev.Question.Noul
- All Implemented Interfaces:
Question
- Enclosing interface:
Question
public static record Question.Noul(String name, Object instructions, Object whenTrue, Object whenFalse)
extends Record
implements Question
Is this true. The answer is a probability and nothing else (ADR 0003).
whenTrue and whenFalse optionally describe what a yes and a no mean.
Either may be null, and a question with neither sends no criteria at all.
-
Nested Class Summary
Nested classes/interfaces inherited from interface xyz.tcheeric.jev.Question
Question.Choice, Question.Noul, Question.Score -
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.name()Returns the value of thenamerecord component.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
Creates an instance of aNoulrecord class.- Parameters:
name- the value for thenamerecord componentinstructions- the value for theinstructionsrecord componentwhenTrue- the value for thewhenTruerecord componentwhenFalse- the value for thewhenFalserecord component
-
Noul
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
name
Returns the value of thenamerecord component. -
instructions
Returns the value of theinstructionsrecord component.- Specified by:
instructionsin interfaceQuestion- Returns:
- the value of the
instructionsrecord component
-
whenTrue
Returns the value of thewhenTruerecord component.- Returns:
- the value of the
whenTruerecord component
-
whenFalse
Returns the value of thewhenFalserecord component.- Returns:
- the value of the
whenFalserecord component
-