Package net.sourceforge.pmd.lang.metrics
Class BasicMetricMemoizer<N extends Node>
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.BasicMetricMemoizer<N>
-
- Type Parameters:
N
- Type of node on which the memoized metric can be computed
- All Implemented Interfaces:
MetricMemoizer<N>
@Deprecated public class BasicMetricMemoizer<N extends Node> extends Object implements MetricMemoizer<N>
Deprecated.See package descriptionBasic implementation of a metric memoizer.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description BasicMetricMemoizer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Double
getMemo(ParameterizedMetricKey<N> key)
Deprecated.Fetch a memoized result for a metric and options.void
memoize(ParameterizedMetricKey<N> key, double value)
Deprecated.Memoizes a result for a metric and options.
-
-
-
Method Detail
-
getMemo
public Double getMemo(ParameterizedMetricKey<N> key)
Deprecated.Description copied from interface:MetricMemoizer
Fetch a memoized result for a metric and options.- Specified by:
getMemo
in interfaceMetricMemoizer<N extends Node>
- Parameters:
key
- The metric key parameterized with its options- Returns:
- The memoized result, or null if it wasn't found
-
memoize
public void memoize(ParameterizedMetricKey<N> key, double value)
Deprecated.Description copied from interface:MetricMemoizer
Memoizes a result for a metric and options.- Specified by:
memoize
in interfaceMetricMemoizer<N extends Node>
- Parameters:
key
- The metric key parameterized with its optionsvalue
- The value to store
-
-