Package htsjdk.samtools.metrics
Class MetricBase
java.lang.Object
htsjdk.samtools.metrics.MetricBase
- Direct Known Subclasses:
SamFileValidator.ValidationMetrics
A base class from which all Metric classes should inherit.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
An equals method that checks equality by asserting that the classes are of the exact same type and that all public fields are equivalent.int
hashCode()
Computes a hashcode by formatting each field into its on disk representation and summing the hashcodes of all the fields.toString()
Converts the metric class to a human readable string.
-
Constructor Details
-
MetricBase
public MetricBase()
-
-
Method Details
-
equals
An equals method that checks equality by asserting that the classes are of the exact same type and that all public fields are equivalent. Equivalence is checked by formatting the field as it would be written to disk and then checking String equality. -
hashCode
public int hashCode()Computes a hashcode by formatting each field into its on disk representation and summing the hashcodes of all the fields. -
toString
Converts the metric class to a human readable string.
-