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 java.lang.Object
    implements Metric<N>
    Abstract class for all metrics.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractMetric()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Metrics should be stateless, thus any instance of the same metric class should be equal.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractMetric

        public AbstractMetric()
    • Method Detail

      • equals

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

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object