Package dev.dokimos.core.gate
Record Class BaselineFile.BaselineItem
java.lang.Object
java.lang.Record
dev.dokimos.core.gate.BaselineFile.BaselineItem
- Record Components:
key- the engine pairing key:"item-<index>"(positional) or adatasetItemIdinput- a truncated human anchor for readable diffs; advisory, never paired onevaluators- the per-evaluator entries, sorted by name
- Enclosing class:
BaselineFile
public static record BaselineFile.BaselineItem(String key, String input, List<BaselineFile.EvaluatorEntry> evaluators)
extends Record
One item's projection.
-
Constructor Summary
ConstructorsConstructorDescriptionBaselineItem(String key, String input, List<BaselineFile.EvaluatorEntry> evaluators) Creates an instance of aBaselineItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorsrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BaselineItem
Creates an instance of aBaselineItemrecord class.- Parameters:
key- the value for thekeyrecord componentinput- the value for theinputrecord componentevaluators- the value for theevaluatorsrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
evaluators
Returns the value of theevaluatorsrecord component.- Returns:
- the value of the
evaluatorsrecord component
-