Package dev.dokimos.server.dto.v1
Record Class AlignmentView.EvaluatorAlignment
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AlignmentView.EvaluatorAlignment
- Record Components:
evaluatorName- the evaluator the breakdown is forcomparableCount- items where the evaluator ran and the human verdict was CORRECT or INCORRECT; the denominator ofalignmentRateagreedCount- comparable items where the evaluator's pass/fail matched the human verdictexcludedUnsure- items the evaluator ran on whose human verdict was UNSUREalignmentRate-agreedCount / comparableCount, or null whencomparableCountis zero
- Enclosing class:
AlignmentView
public static record AlignmentView.EvaluatorAlignment(String evaluatorName, int comparableCount, int agreedCount, int excludedUnsure, Double alignmentRate)
extends Record
Agreement breakdown for a single evaluator across a run's annotated items.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluatorAlignment(String evaluatorName, int comparableCount, int agreedCount, int excludedUnsure, Double alignmentRate) Creates an instance of aEvaluatorAlignmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theagreedCountrecord component.Returns the value of thealignmentRaterecord component.intReturns the value of thecomparableCountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.intReturns the value of theexcludedUnsurerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluatorAlignment
public EvaluatorAlignment(String evaluatorName, int comparableCount, int agreedCount, int excludedUnsure, Double alignmentRate) Creates an instance of aEvaluatorAlignmentrecord class.- Parameters:
evaluatorName- the value for theevaluatorNamerecord componentcomparableCount- the value for thecomparableCountrecord componentagreedCount- the value for theagreedCountrecord componentexcludedUnsure- the value for theexcludedUnsurerecord componentalignmentRate- the value for thealignmentRaterecord 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 '=='. -
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
comparableCount
public int comparableCount()Returns the value of thecomparableCountrecord component.- Returns:
- the value of the
comparableCountrecord component
-
agreedCount
public int agreedCount()Returns the value of theagreedCountrecord component.- Returns:
- the value of the
agreedCountrecord component
-
excludedUnsure
public int excludedUnsure()Returns the value of theexcludedUnsurerecord component.- Returns:
- the value of the
excludedUnsurerecord component
-
alignmentRate
Returns the value of thealignmentRaterecord component.- Returns:
- the value of the
alignmentRaterecord component
-