Class MetricKeyUtil


  • public final class MetricKeyUtil
    extends java.lang.Object
    Holds the key creation method until we move it to the MetricKey interface.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends Node>
      MetricKey<T>
      of​(java.lang.String name, Metric<T> metric)
      Creates a new metric key from its metric and name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static <T extends NodeMetricKey<T> of​(java.lang.String name,
                                                       Metric<T> metric)
        Creates a new metric key from its metric and name.
        Type Parameters:
        T - Type of node the metric can be computed on
        Parameters:
        name - The name of the metric
        metric - The metric to use
        Returns:
        The metric key