Package at.jku.dke.etutor.task_app.dto
Record Class GradingResultDto
java.lang.Object
java.lang.Record
at.jku.dke.etutor.task_app.dto.GradingResultDto
- Record Components:
submissionId
- The submission identifier.grading
- The grading result.
- All Implemented Interfaces:
Serializable
public record GradingResultDto(UUID submissionId, @NotNull GradingDto grading)
extends Record
implements Serializable
Represents a grading result.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGradingResultDto
(UUID submissionId, @NotNull GradingDto grading) Creates an instance of aGradingResultDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.grading()
Returns the value of thegrading
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesubmissionId
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GradingResultDto
Creates an instance of aGradingResultDto
record class.- Parameters:
submissionId
- the value for thesubmissionId
record componentgrading
- the value for thegrading
record 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)
. -
submissionId
Returns the value of thesubmissionId
record component.- Returns:
- the value of the
submissionId
record component
-
grading
Returns the value of thegrading
record component.- Returns:
- the value of the
grading
record component
-