Record Class ThresholdValueEditorResource.ThresholdValueTemplate
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.qualification.impl.resources.ThresholdValueEditorResource.ThresholdValueTemplate
- Enclosing class:
ThresholdValueEditorResource
public static record ThresholdValueEditorResource.ThresholdValueTemplate(String pk, String label, List<ThresholdValueEditorResource.ThresholdValue> values)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionThresholdValueTemplate(String pk, String label, List<ThresholdValueEditorResource.ThresholdValue> values) Creates an instance of aThresholdValueTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.pk()Returns the value of thepkrecord component.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
ThresholdValueTemplate
public ThresholdValueTemplate(String pk, String label, List<ThresholdValueEditorResource.ThresholdValue> values) Creates an instance of aThresholdValueTemplaterecord class.- Parameters:
pk- the value for thepkrecord componentlabel- the value for thelabelrecord componentvalues- the value for thevaluesrecord 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
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-