Package at.jku.dke.etutor.task_app.dto
Record Class CriterionDto
java.lang.Object
java.lang.Record
at.jku.dke.etutor.task_app.dto.CriterionDto
- Record Components:
name
- The name of the criterion.points
- The achieved points (just for information, not used for total grading, might benull
).passed
- Whether the criterion was passed (might influence display, not used for anything else).feedback
- The feedback for the criterion (can be HTML).
- All Implemented Interfaces:
Serializable
public record CriterionDto(@NotEmpty String name, BigDecimal points, @jakarta.validation.constraints.NotNull boolean passed, @NotNull String feedback)
extends Record
implements Serializable
Represents a grading criterion result.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCriterionDto
(@NotEmpty String name, BigDecimal points, @jakarta.validation.constraints.NotNull boolean passed, @NotNull String feedback) Creates an instance of aCriterionDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.feedback()
Returns the value of thefeedback
record component.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.@jakarta.validation.constraints.NotNull boolean
passed()
Returns the value of thepassed
record component.points()
Returns the value of thepoints
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
points
Returns the value of thepoints
record component.- Returns:
- the value of the
points
record component
-
passed
Returns the value of thepassed
record component.- Returns:
- the value of the
passed
record component
-
feedback
Returns the value of thefeedback
record component.- Returns:
- the value of the
feedback
record component
-