Package net.sourceforge.pmd.lang.metrics
Class ParameterizedMetricKey<N extends Node>
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.ParameterizedMetricKey<N>
-
- Type Parameters:
N- Type of node on which the memoized metric can be computed
- All Implemented Interfaces:
DataMap.DataKey<ParameterizedMetricKey<N>,Double>
@InternalApi @Deprecated public final class ParameterizedMetricKey<N extends Node> extends Object implements DataMap.DataKey<ParameterizedMetricKey<N>,Double>
Deprecated.Is internal APIRepresents a key parameterized with its options. Used to index memoization maps.- Since:
- 5.8.0
- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description MetricKey<N>keyDeprecated.The metric key.MetricOptionsoptionsDeprecated.The options of the metric.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)Deprecated.static <N extends Node>
ParameterizedMetricKey<N>getInstance(MetricKey<N> key, MetricOptions options)Deprecated.Builds a parameterized metric key.inthashCode()Deprecated.StringtoString()Deprecated.
-
-
-
Field Detail
-
options
public final MetricOptions options
Deprecated.The options of the metric.
-
-
Method Detail
-
getInstance
public static <N extends Node> ParameterizedMetricKey<N> getInstance(MetricKey<N> key, MetricOptions options)
Deprecated.Builds a parameterized metric key.- Type Parameters:
N- The type of node of the metric key- Parameters:
key- The keyoptions- The options- Returns:
- An instance of parameterized metric key corresponding to the parameters
-
-