Record Class Score
java.lang.Object
java.lang.Record
ai.redouble.nucleo.harness.decision.Score
- Record Components:
instructions- what is being ratedlevels- the levels in order from lowest to highest, at least two, each described
- All Implemented Interfaces:
Question
A position on an ordered scale the caller describes, lowest level first. The answer is a
probability per level and their weighted position, so a state between two levels reads as
a fraction.
- 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.levels()Returns the value of thelevelsrecord component.static Scorefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Score
Creates an instance of aScorerecord class.- Parameters:
instructions- the value for theinstructionsrecord componentlevels- the value for thelevelsrecord component
-
-
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
-
levels
-