Record Class ThresholdValueEditorResource.ThresholdValue
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.resources.ThresholdValueEditorResource.ThresholdValue
- Enclosing class:
ThresholdValueEditorResource
public static record ThresholdValueEditorResource.ThresholdValue(String pk, BigDecimal points, BigDecimal grade, @Nullable Integer numGrades)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionThresholdValue(String pk, BigDecimal points, BigDecimal grade, @Nullable Integer numGrades) Creates an instance of aThresholdValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.grade()Returns the value of thegraderecord component.final inthashCode()Returns a hash code value for this object.@Nullable IntegerReturns the value of thenumGradesrecord component.pk()Returns the value of thepkrecord component.points()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThresholdValue
Creates an instance of aThresholdValuerecord class.- Parameters:
pk- the value for thepkrecord componentpoints- the value for thepointsrecord componentgrade- the value for thegraderecord componentnumGrades- the value for thenumGradesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
pk
Returns the value of thepkrecord component.- Returns:
- the value of the
pkrecord component
-
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
grade
Returns the value of thegraderecord component.- Returns:
- the value of the
graderecord component
-
numGrades
Returns the value of thenumGradesrecord component.- Returns:
- the value of the
numGradesrecord component
-