Package org.lifstools.jmzqc
Record Class MzQC
java.lang.Object
java.lang.Record
org.lifstools.jmzqc.MzQC
public record MzQC(String contactAddress, String contactName, List<ControlledVocabulary> controlledVocabularies, OffsetDateTime creationDate, String description, List<BaseQuality> runQualities, List<BaseQuality> setQualities, String version)
extends Record
Root element of an mzQC file.
-
Constructor Summary
ConstructorsConstructorDescriptionMzQC(String contactAddress, String contactName, List<ControlledVocabulary> controlledVocabularies, OffsetDateTime creationDate, String description, List<BaseQuality> runQualities, List<BaseQuality> setQualities, String version) Creates an instance of aMzQCrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontactAddressrecord component.Returns the value of thecontactNamerecord component.Returns the value of thecontrolledVocabulariesrecord component.Returns the value of thecreationDaterecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.getRunQualityMetrics(int index) Returns a reference to the internal list of quality metrics for the given run.getRunQualityMetricsByAccession(int index, String accession) Returns a reference to the internal list of quality metrics for the given run.final inthashCode()Returns a hash code value for this object.Returns the value of therunQualitiesrecord component.Returns the value of thesetQualitiesrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
MzQC
public MzQC(String contactAddress, String contactName, List<ControlledVocabulary> controlledVocabularies, OffsetDateTime creationDate, String description, List<BaseQuality> runQualities, List<BaseQuality> setQualities, String version) Creates an instance of aMzQCrecord class.- Parameters:
contactAddress- the value for thecontactAddressrecord componentcontactName- the value for thecontactNamerecord componentcontrolledVocabularies- the value for thecontrolledVocabulariesrecord componentcreationDate- the value for thecreationDaterecord componentdescription- the value for thedescriptionrecord componentrunQualities- the value for therunQualitiesrecord componentsetQualities- the value for thesetQualitiesrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
getRunQualityMetrics
Returns a reference to the internal list of quality metrics for the given run. Modifications are reflected in the object graph.- Parameters:
index- the zero-based array index of a run.- Returns:
- the underlying list of qc metrics
- Throws:
IllegalArgumentException- if arguments are invalid
-
getRunQualityMetricsByAccession
Returns a reference to the internal list of quality metrics for the given run. Modifications are reflected in the object graph.- Parameters:
index- the zero-based array index of a run.accession- the cv accession for qc metrics to return- Returns:
- the underlying list of qc metrics, filtered for accession
- Throws:
IllegalArgumentException- if arguments are invalid
-
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). -
contactAddress
Returns the value of thecontactAddressrecord component.- Returns:
- the value of the
contactAddressrecord component
-
contactName
Returns the value of thecontactNamerecord component.- Returns:
- the value of the
contactNamerecord component
-
controlledVocabularies
Returns the value of thecontrolledVocabulariesrecord component.- Returns:
- the value of the
controlledVocabulariesrecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
runQualities
Returns the value of therunQualitiesrecord component.- Returns:
- the value of the
runQualitiesrecord component
-
setQualities
Returns the value of thesetQualitiesrecord component.- Returns:
- the value of the
setQualitiesrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-