Package dev.dokimos.server.dto.v1
Record Class DiffCase
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.DiffCase
- Record Components:
datasetItemId- the dataset item id, or null for positionally paired itemsindex- the comparison key (dataset item id or positional key such asitem-3)status- REGRESSED, IMPROVED, UNCHANGED, ADDED, or REMOVEDpassFlip- true when the item flipped pass/fail between the two runsinput- the item's input text, taken from the candidate run (or baseline for REMOVED)evaluators- per-evaluator deltas for this item
public record DiffCase(String datasetItemId, String index, String status, boolean passFlip, String input, List<DiffCase.EvaluatorDiff> evaluators)
extends Record
One row of the per-case run-diff table: a single item compared across baseline and candidate,
with its per-evaluator old-to-new deltas. Identified by its dataset item id when paired by id, or
by its positional index otherwise (exactly one of
datasetItemId / index carries
the meaningful identity, but both are populated from the comparison key for convenience).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA single evaluator's change on one item between baseline and candidate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatasetItemIdrecord component.final 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.index()Returns the value of theindexrecord component.input()Returns the value of theinputrecord component.booleanpassFlip()Returns the value of thepassFliprecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiffCase
public DiffCase(String datasetItemId, String index, String status, boolean passFlip, String input, List<DiffCase.EvaluatorDiff> evaluators) Creates an instance of aDiffCaserecord class.- Parameters:
datasetItemId- the value for thedatasetItemIdrecord componentindex- the value for theindexrecord componentstatus- the value for thestatusrecord componentpassFlip- the value for thepassFliprecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
datasetItemId
Returns the value of thedatasetItemIdrecord component.- Returns:
- the value of the
datasetItemIdrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
passFlip
public boolean passFlip()Returns the value of thepassFliprecord component.- Returns:
- the value of the
passFliprecord 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
-