|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gmetrics.result.NumberMetricResult
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.
| Property Summary | |
|---|---|
int |
count
|
Integer |
lineNumber
|
Metric |
metric
|
MetricLevel |
metricLevel
|
def |
number
|
Map |
values
|
| Constructor Summary | |
NumberMetricResult(Metric metric, MetricLevel metricLevel, Map values, Integer lineNumber = null, int count = 1)
Construct a new instance |
|
| Method Summary | |
|---|---|
Object
|
getAt(String name)
|
String
|
toString()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Property Detail |
|---|
final int count
final Integer lineNumber
final Metric metric
final MetricLevel metricLevel
final def number
final Map values
| Constructor Detail |
|---|
NumberMetricResult(Metric metric, MetricLevel metricLevel, Map values, Integer lineNumber = null, int count = 1)
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 null
| Method Detail |
|---|
Object getAt(String name)
String toString()
Groovy Documentation