Package dev.dokimos.server.dto.v1
Record Class GateResult.RegressedCase
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.GateResult.RegressedCase
- Record Components:
datasetItemId- the dataset item id, or null for positionally paired itemsindex- the comparison key (dataset item id or positional key)evaluatorDrops- the per-evaluator score drops on this item
- Enclosing class:
GateResult
public static record GateResult.RegressedCase(String datasetItemId, String index, List<GateResult.EvaluatorDrop> evaluatorDrops)
extends Record
A single regressed item, identified by its dataset item id when paired by id or by its
positional index otherwise.
-
Constructor Summary
ConstructorsConstructorDescriptionRegressedCase(String datasetItemId, String index, List<GateResult.EvaluatorDrop> evaluatorDrops) Creates an instance of aRegressedCaserecord class. -
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 theevaluatorDropsrecord component.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegressedCase
public RegressedCase(String datasetItemId, String index, List<GateResult.EvaluatorDrop> evaluatorDrops) Creates an instance of aRegressedCaserecord class.- Parameters:
datasetItemId- the value for thedatasetItemIdrecord componentindex- the value for theindexrecord componentevaluatorDrops- the value for theevaluatorDropsrecord 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). -
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
-
evaluatorDrops
Returns the value of theevaluatorDropsrecord component.- Returns:
- the value of the
evaluatorDropsrecord component
-