Package org.lifstools.jmzqc
Record Class QualityMetric
java.lang.Object
java.lang.Record
org.lifstools.jmzqc.QualityMetric
public record QualityMetric(String accession, String description, String name, Object value, Unit unit)
extends Record
Element containing the value and description of a QC metric defined in a
controlled vocabulary.
Base element for a term that is defined in a controlled vocabulary, with
OPTIONAL value.
Type of input file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessionrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.toDouble()toLong()final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
QualityMetric
Creates an instance of aQualityMetricrecord class.- Parameters:
accession- the value for theaccessionrecord componentdescription- the value for thedescriptionrecord componentname- the value for thenamerecord componentvalue- the value for thevaluerecord componentunit- the value for theunitrecord component
-
-
Method Details
-
toLong
-
toDouble
-
toInteger
-
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). -
accession
Returns the value of theaccessionrecord component.- Returns:
- the value of the
accessionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-