Package dev.dokimos.server.dto.v1
Record Class AnnotationRequest
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AnnotationRequest
- Record Components:
verdict- the reviewer's verdict (required)overriddenExpectedOutput- a corrected expected output to record for later promotion, or nullnote- an optional free-text reviewer note (bounded to keep run-detail payloads sane)
public record AnnotationRequest(@NotNull AnnotationVerdict verdict, Map<String,Object> overriddenExpectedOutput, @Size(max=10000) String note)
extends Record
Payload for creating or updating the annotation on a run item result.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationRequest(@NotNull AnnotationVerdict verdict, Map<String, Object> overriddenExpectedOutput, @Size(max=10000) String note) Creates an instance of aAnnotationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Size(max=10000) Stringnote()Returns the value of thenoterecord component.Returns the value of theoverriddenExpectedOutputrecord component.final StringtoString()Returns a string representation of this record class.@NotNull AnnotationVerdictverdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
AnnotationRequest
public AnnotationRequest(@NotNull @NotNull AnnotationVerdict verdict, Map<String, Object> overriddenExpectedOutput, @Size(max=10000) @Size(max=10000) String note) Creates an instance of aAnnotationRequestrecord class.- Parameters:
verdict- the value for theverdictrecord componentoverriddenExpectedOutput- the value for theoverriddenExpectedOutputrecord componentnote- the value for thenoterecord 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). -
verdict
Returns the value of theverdictrecord component.- Returns:
- the value of the
verdictrecord component
-
overriddenExpectedOutput
Returns the value of theoverriddenExpectedOutputrecord component.- Returns:
- the value of the
overriddenExpectedOutputrecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-