Record Class NoulQuestion
java.lang.Object
java.lang.Record
io.agentscope.extensions.judge.jev.NoulQuestion
- All Implemented Interfaces:
Question
public record NoulQuestion(Object instructions, NoulQuestion.NoulCriteria criteria)
extends Record
implements Question
A yes/no question whose answer is the probability that the answer is yes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOptional descriptions of what yes and no mean. -
Constructor Summary
ConstructorsConstructorDescriptionNoulQuestion(Object instructions, NoulQuestion.NoulCriteria criteria) Creates an instance of aNoulQuestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NoulQuestion
Creates an instance of aNoulQuestionrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentcriteria- the value for thecriteriarecord component
-
-
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). -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-