A Builder for MetricResult objects.
Type | Name and description |
---|---|
Metric |
metric |
MetricLevel |
metricLevel |
int |
scale |
Type | Name and description |
---|---|
MetricResult |
createAggregateMetricResult(Collection<MetricResult> children, Integer lineNumber, Map<String, Object> overrideValues = null) Calculate the aggregate metric results for the specified child metric results. |
String |
toString() |
Calculate the aggregate metric results for the specified child metric results. The metric and metricLevel properties of this object must be set before calling this method.
children
- - the optional collection of results from childrenlineNumber
- - the line number for the source element (AST) that triggered this metric result; may be nulloverrideValues
- - the optional Map of functionName:resultValue to specify override values
for the specified functions; may be null or empty to specify no predefined values