Class DummyMetricMemoizer<N extends Node>
- java.lang.Object
-
- net.sourceforge.pmd.lang.metrics.internal.DummyMetricMemoizer<N>
-
- All Implemented Interfaces:
MetricMemoizer<N>
public final class DummyMetricMemoizer<N extends Node> extends Object implements MetricMemoizer<N>
Memoizes nothing.- Since:
- 6.11.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <N extends Node>
DummyMetricMemoizer<N>getInstance()DoublegetMemo(ParameterizedMetricKey<N> key)Fetch a memoized result for a metric and options.voidmemoize(ParameterizedMetricKey<N> key, double value)Memoizes a result for a metric and options.
-
-
-
Method Detail
-
getMemo
public Double getMemo(ParameterizedMetricKey<N> key)
Description copied from interface:MetricMemoizerFetch a memoized result for a metric and options.- Specified by:
getMemoin 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)
Description copied from interface:MetricMemoizerMemoizes a result for a metric and options.- Specified by:
memoizein interfaceMetricMemoizer<N extends Node>- Parameters:
key- The metric key parameterized with its optionsvalue- The value to store
-
getInstance
public static <N extends Node> DummyMetricMemoizer<N> getInstance()
-
-