Class MetricBase

    • Constructor Detail

      • MetricBase

        public MetricBase()
    • Method Detail

      • equals

        public boolean equals​(Object o)
        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.
        Overrides:
        equals in class Object
        Parameters:
        o - an instance to compare to
        Returns:
        true if they are equal, false otherwise
      • hashCode

        public int hashCode()
        Computes a hashcode by formatting each field into its on disk representation and summing the hashcodes of all the fields.
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Converts the metric class to a human readable string.
        Overrides:
        toString in class Object