Package org.lifstools.jmzqc
Record Class Unit
java.lang.Object
java.lang.Record
org.lifstools.jmzqc.Unit
public record Unit(CvParameter cvParameterValue, List<CvParameter> cvParameterArrayValue)
extends Record
One or more controlled vocabulary elements describing the unit of the metric.
-
Constructor Summary
ConstructorsConstructorDescriptionUnit(CvParameter cvParameterValue, List<CvParameter> cvParameterArrayValue) Creates an instance of aUnitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecvParameterArrayValuerecord component.Returns the value of thecvParameterValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Unit
Creates an instance of aUnitrecord class.- Parameters:
cvParameterValue- the value for thecvParameterValuerecord componentcvParameterArrayValue- the value for thecvParameterArrayValuerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
cvParameterValue
Returns the value of thecvParameterValuerecord component.- Returns:
- the value of the
cvParameterValuerecord component
-
cvParameterArrayValue
Returns the value of thecvParameterArrayValuerecord component.- Returns:
- the value of the
cvParameterArrayValuerecord component
-