@OpenApi
public class MetricsCalculator
extends java.lang.Object
Constructor and Description |
---|
MetricsCalculator(MetricsInformation metricsInformation)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
MetricsResults |
calculate()
Calculate metrics for the given metrics information parameter.
|
MetricResult |
calculate(BaseElement element,
Metric metric)
Use this method to return a cached result if the metric was already calculate for the element.
|
@OpenApi public MetricsCalculator(MetricsInformation metricsInformation)
@OpenApi public MetricsResults calculate()
@OpenApi public MetricResult calculate(BaseElement element, Metric metric)
element
- BaseElementmetric
- Metric