public interface Measure
MeasureComputer
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue()
The value of this measure as a boolean.
|
double |
getDoubleValue()
The value of this measure as a double.
|
int |
getIntValue()
The value of this measure as a integer.
|
long |
getLongValue()
The value of this measure as a long.
|
String |
getStringValue()
The value of this measure as a string.
|
int getIntValue()
IllegalStateException
- if the value type of the metric is not an Integer as defined by Metric.ValueType.valueClass
To find out the value type of a metric, check it's definition (eg., core metrics are defined in CoreMetrics
).long getLongValue()
IllegalStateException
- if the value type of the metric is not a Long as defined by Metric.ValueType.valueClass
To find out the value type of a metric, check it's definition (eg., core metrics are defined in CoreMetrics
).double getDoubleValue()
IllegalStateException
- if the value type of the metric is not a Double as defined by Metric.ValueType.valueClass
.
To find out the value type of a metric, check it's definition (eg., core metrics are defined in CoreMetrics
).String getStringValue()
IllegalStateException
- if the value type of the metric is not a String as defined by Metric.ValueType.valueClass
To find out the value type of a metric, check it's definition (eg., core metrics are defined in CoreMetrics
).boolean getBooleanValue()
IllegalStateException
- if the value type of the metric is not a Boolean as defined by Metric.ValueType.valueClass
To find out the value type of a metric, check it's definition (eg., core metrics are defined in CoreMetrics
).Copyright © 2009–2016 SonarSource. All rights reserved.