Record Class ThresholdValueEditorResource.FormData
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.resources.ThresholdValueEditorResource.FormData
- Enclosing class:
ThresholdValueEditorResource
public static record ThresholdValueEditorResource.FormData(String input, @Nullable String events, @Nullable BigDecimal minGrade, @Nullable BigDecimal maxGrade, @Nullable BigDecimal rounding, List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, List<ThresholdValueEditorResource.ThresholdValueTemplate> templates, boolean gradesReversed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFormData(String input, @Nullable String events, @Nullable BigDecimal minGrade, @Nullable BigDecimal maxGrade, @Nullable BigDecimal rounding, List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, List<ThresholdValueEditorResource.ThresholdValueTemplate> templates, boolean gradesReversed) Creates an instance of aFormDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringevents()Returns the value of theeventsrecord component.booleanReturns the value of thegradesReversedrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.@Nullable BigDecimalmaxGrade()Returns the value of themaxGraderecord component.@Nullable BigDecimalminGrade()Returns the value of theminGraderecord component.@Nullable BigDecimalrounding()Returns the value of theroundingrecord component.Returns the value of thetemplatesrecord component.Returns the value of thethresholdValuesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FormData
public FormData(String input, @Nullable String events, @Nullable BigDecimal minGrade, @Nullable BigDecimal maxGrade, @Nullable BigDecimal rounding, List<ThresholdValueEditorResource.ThresholdValue> thresholdValues, List<ThresholdValueEditorResource.ThresholdValueTemplate> templates, boolean gradesReversed) Creates an instance of aFormDatarecord class.- Parameters:
input- the value for theinputrecord componentevents- the value for theeventsrecord componentminGrade- the value for theminGraderecord componentmaxGrade- the value for themaxGraderecord componentrounding- the value for theroundingrecord componentthresholdValues- the value for thethresholdValuesrecord componenttemplates- the value for thetemplatesrecord componentgradesReversed- the value for thegradesReversedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
minGrade
Returns the value of theminGraderecord component.- Returns:
- the value of the
minGraderecord component
-
maxGrade
Returns the value of themaxGraderecord component.- Returns:
- the value of the
maxGraderecord component
-
rounding
Returns the value of theroundingrecord component.- Returns:
- the value of the
roundingrecord component
-
thresholdValues
Returns the value of thethresholdValuesrecord component.- Returns:
- the value of the
thresholdValuesrecord component
-
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-
gradesReversed
public boolean gradesReversed()Returns the value of thegradesReversedrecord component.- Returns:
- the value of the
gradesReversedrecord component
-