|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gmetrics.result.SingleNumberMetricResult
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.
| Property Summary | |
|---|---|
int |
count
|
Integer |
lineNumber
|
Metric |
metric
|
MetricLevel |
metricLevel
|
def |
number
|
| Constructor Summary | |
SingleNumberMetricResult(Metric metric, MetricLevel metricLevel, def number, Integer lineNumber = null)
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
| Constructor Detail |
|---|
SingleNumberMetricResult(Metric metric, MetricLevel metricLevel, def number, Integer lineNumber = null)
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 null
| Method Detail |
|---|
Object getAt(String name)
String toString()
Groovy Documentation