class SingleNumberMetricResult
A MetricResult for numbers (integers, BigDecimals, etc.), that returns the same, single value 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 |
Constructor and description |
---|
SingleNumberMetricResult
(Metric metric, MetricLevel metricLevel, def number, Integer lineNumber = null) Construct a new instance |
Construct a new instance
metric
- - the Metric to which this result appliesmetricLevel
- - the metric level for this resultnumber
- - the single value to use for total, average, minimum, and maximumlineNumber
- - the line number for the source element (AST) that triggered this metric result; may be nullGroovy Documentation