N
- Type of node on which the memoized metric can be computedBasicMetricMemoizer
public interface MetricMemoizer<N extends Node>
BasicMetricMemoizer
.Modifier and Type | Method | Description |
---|---|---|
java.lang.Double |
getMemo(ParameterizedMetricKey<N> key) |
Fetch a memoized result for a metric and options.
|
void |
memoize(ParameterizedMetricKey<N> key,
double value) |
Memoizes a result for a metric and options.
|
java.lang.Double getMemo(ParameterizedMetricKey<N> key)
key
- The metric key parameterized with its optionsvoid memoize(ParameterizedMetricKey<N> key, double value)
key
- The metric key parameterized with its optionsvalue
- The value to storeCopyright © 2002–2018 PMD. All rights reserved.