class NumberMetricResult
A MetricResult for numbers (integers, BigDecimals, etc.), that has separate values for total, average, minimum and maximum. An instance of this class is immutable.
Type | Name and description |
---|---|
int |
count |
Integer |
lineNumber |
Metric |
metric |
MetricLevel |
metricLevel |
def |
number |
Map<String, Number> |
values |
Constructor and description |
---|
NumberMetricResult
(Metric metric, MetricLevel metricLevel, Map<String, Object> values, Integer lineNumber = null, int count = 1) Construct a new instance |
Construct a new instance
metric
- - the Metric to which this result appliesmetricLevel
- - the metric level for this resultvalues
- - the Map of values by function name; should include entries for total,average,minimum,maximum as appropriatelineNumber
- - the line number for the source element (AST) that triggered this metric result; may be nullGroovy Documentation