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
ConstructorsConstructorDescriptionExamEditData(List<ExamEditResource.Exam> exams, @Nullable BigDecimal maxPoints, String type, boolean isTemplate) Creates an instance of aExamEditDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exams()Returns the value of theexamsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisTemplaterecord component.@Nullable BigDecimalReturns the value of themaxPointsrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ExamEditData
public ExamEditData(List<ExamEditResource.Exam> exams, @Nullable @Nullable BigDecimal maxPoints, String type, boolean isTemplate) Creates an instance of aExamEditDatarecord class.- Parameters:
exams- the value for theexamsrecord componentmaxPoints- the value for themaxPointsrecord componenttype- the value for thetyperecord componentisTemplate- the value for theisTemplaterecord 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 theexamsrecord component.- Returns:
- the value of the
examsrecord component
-
maxPoints
Returns the value of themaxPointsrecord component.- Returns:
- the value of the
maxPointsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
isTemplate
public boolean isTemplate()Returns the value of theisTemplaterecord component.- Returns:
- the value of the
isTemplaterecord component
-