Package dev.dokimos.server.dto.v1
Record Class AnnotationView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.AnnotationView
public record AnnotationView(UUID id, AnnotationVerdict verdict, Map<String,Object> overriddenExpectedOutput, String note, String createdBy, Instant createdAt, Instant updatedAt)
extends Record
Read model for an annotation on a run item result.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationView(UUID id, AnnotationVerdict verdict, Map<String, Object> overriddenExpectedOutput, String note, String createdBy, Instant createdAt, Instant updatedAt) Creates an instance of aAnnotationViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thecreatedByrecord component.final booleanIndicates whether some other object is "equal to" this one.static AnnotationViewfrom(Annotation annotation) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.note()Returns the value of thenoterecord component.Returns the value of theoverriddenExpectedOutputrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
AnnotationView
public AnnotationView(UUID id, AnnotationVerdict verdict, Map<String, Object> overriddenExpectedOutput, String note, String createdBy, Instant createdAt, Instant updatedAt) Creates an instance of aAnnotationViewrecord class.- Parameters:
id- the value for theidrecord componentverdict- the value for theverdictrecord componentoverriddenExpectedOutput- the value for theoverriddenExpectedOutputrecord componentnote- the value for thenoterecord componentcreatedBy- the value for thecreatedByrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord component
-
-
Method Details
-
from
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
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
-
createdBy
Returns the value of thecreatedByrecord component.- Returns:
- the value of the
createdByrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-