Package at.jku.dke.etutor.task_app.dto
Record Class GradingDto
java.lang.Object
java.lang.Record
at.jku.dke.etutor.task_app.dto.GradingDto
- Record Components:
maxPoints
- The maximum reachable points.points
- The achieved points.generalFeedback
- The general feedback (can be HTML).criteria
- The criteria containing the specific feedback.
- All Implemented Interfaces:
Serializable
public record GradingDto(@NotNull @PositiveOrZero BigDecimal maxPoints, @NotNull BigDecimal points, String generalFeedback, @NotNull List<CriterionDto> criteria)
extends Record
implements Serializable
Data transfer object for grading of a submission.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGradingDto
(@NotNull @PositiveOrZero BigDecimal maxPoints, @NotNull BigDecimal points, String generalFeedback, @NotNull List<CriterionDto> criteria) Creates an instance of aGradingDto
record class. -
Method Summary
Modifier and TypeMethodDescriptioncriteria()
Returns the value of thecriteria
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegeneralFeedback
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themaxPoints
record component.points()
Returns the value of thepoints
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GradingDto
public GradingDto(@NotNull @PositiveOrZero @NotNull @PositiveOrZero BigDecimal maxPoints, @NotNull @NotNull BigDecimal points, String generalFeedback, @NotNull @NotNull List<CriterionDto> criteria) Creates an instance of aGradingDto
record class.- Parameters:
maxPoints
- the value for themaxPoints
record componentpoints
- the value for thepoints
record componentgeneralFeedback
- the value for thegeneralFeedback
record componentcriteria
- the value for thecriteria
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)
. -
maxPoints
Returns the value of themaxPoints
record component.- Returns:
- the value of the
maxPoints
record component
-
points
Returns the value of thepoints
record component.- Returns:
- the value of the
points
record component
-
generalFeedback
Returns the value of thegeneralFeedback
record component.- Returns:
- the value of the
generalFeedback
record component
-
criteria
Returns the value of thecriteria
record component.- Returns:
- the value of the
criteria
record component
-