Class AbstractMetric<N extends Node>

  • Type Parameters:
    N - Type of nodes the metric can be computed on
    All Implemented Interfaces:
    Metric<N>

    public abstract class AbstractMetric<N extends Node>
    extends Object
    implements Metric<N>
    Abstract class for all metrics.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Constructor Detail

      • AbstractMetric

        public AbstractMetric()
    • Method Detail

      • equals

        public final boolean equals​(Object o)
        Metrics should be stateless, thus any instance of the same metric class should be equal.
        Overrides:
        equals in class Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object