Package dev.dokimos.server.service
Record Class JudgeJobTransactions.ScoredResult
java.lang.Object
java.lang.Record
dev.dokimos.server.service.JudgeJobTransactions.ScoredResult
- Enclosing class:
JudgeJobTransactions
public static record JudgeJobTransactions.ScoredResult(UUID itemId, EvalResult evalResult)
extends Record
Pairs an eval result with the id of the item result it belongs to, for batch persistence.
-
Constructor Summary
ConstructorsConstructorDescriptionScoredResult(UUID itemId, EvalResult evalResult) Creates an instance of aScoredResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalResultrecord component.final inthashCode()Returns a hash code value for this object.itemId()Returns the value of theitemIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoredResult
Creates an instance of aScoredResultrecord class.- Parameters:
itemId- the value for theitemIdrecord componentevalResult- the value for theevalResultrecord 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). -
itemId
Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
evalResult
Returns the value of theevalResultrecord component.- Returns:
- the value of the
evalResultrecord component
-