Record Class ExamEditResource.ExamEditData
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.resources.ExamEditResource.ExamEditData
- Enclosing class:
ExamEditResource
public static record ExamEditResource.ExamEditData(List<ExamEditResource.Exam> exams, @Nullable BigDecimal maxPoints, String type, boolean isTemplate)
extends Record
-
Constructor Summary
ConstructorDescriptionExamEditData
(List<ExamEditResource.Exam> exams, @Nullable BigDecimal maxPoints, String type, boolean isTemplate) Creates an instance of aExamEditData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.exams()
Returns the value of theexams
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisTemplate
record component.@Nullable BigDecimal
Returns the value of themaxPoints
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ExamEditData
public ExamEditData(List<ExamEditResource.Exam> exams, @Nullable @Nullable BigDecimal maxPoints, String type, boolean isTemplate) Creates an instance of aExamEditData
record class.- Parameters:
exams
- the value for theexams
record componentmaxPoints
- the value for themaxPoints
record componenttype
- the value for thetype
record componentisTemplate
- the value for theisTemplate
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
exams
Returns the value of theexams
record component.- Returns:
- the value of the
exams
record component
-
maxPoints
Returns the value of themaxPoints
record component.- Returns:
- the value of the
maxPoints
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
isTemplate
public boolean isTemplate()Returns the value of theisTemplate
record component.- Returns:
- the value of the
isTemplate
record component
-