diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-06-09 08:56:43 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-07-08 11:42:53 +0200 |
commit | eef20982c79dedac33261f1c6ca609e605ac1216 (patch) | |
tree | b00a6abfabe93369a270b8c3ffe95aa73c5e9a21 /sonar-plugin-api | |
parent | ce748e217f599da5efb043bb847738b4f6aa9f23 (diff) | |
download | sonarqube-eef20982c79dedac33261f1c6ca609e605ac1216.tar.gz sonarqube-eef20982c79dedac33261f1c6ca609e605ac1216.zip |
SONAR-6730 improving javadoc of org.sonar.api.ce.measure.Measure
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/Measure.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/Measure.java b/sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/Measure.java index bf2f6927558..b6482084c51 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/Measure.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/ce/measure/Measure.java @@ -29,35 +29,40 @@ public interface Measure { /** * The value of this measure as a integer. * - * @throws IllegalStateException if the value type of the metric is not a integer. See {@link org.sonar.api.measures.Metric.ValueType} + * @throws IllegalStateException if the value type of the metric is not an Integer as defined by {@link org.sonar.api.measures.Metric.ValueType#valueClass} + * To find out the value type of a metric, check it's definition (eg., core metrics are defined in {@link org.sonar.api.measures.CoreMetrics}). */ int getIntValue(); /** * The value of this measure as a long. * - * @throws IllegalStateException if the value type of the metric is not a long. See {@link org.sonar.api.measures.Metric.ValueType} + * @throws IllegalStateException if the value type of the metric is not a Long as defined by {@link org.sonar.api.measures.Metric.ValueType#valueClass} + * To find out the value type of a metric, check it's definition (eg., core metrics are defined in {@link org.sonar.api.measures.CoreMetrics}). */ long getLongValue(); /** * The value of this measure as a double. * - * @throws IllegalStateException if the value type of the metric is not a double. See {@link org.sonar.api.measures.Metric.ValueType} + * @throws IllegalStateException if the value type of the metric is not a Double as defined by {@link org.sonar.api.measures.Metric.ValueType#valueClass}. + * To find out the value type of a metric, check it's definition (eg., core metrics are defined in {@link org.sonar.api.measures.CoreMetrics}). */ double getDoubleValue(); /** * The value of this measure as a string. * - * @throws IllegalStateException if the value type of the metric is not a string. See {@link org.sonar.api.measures.Metric.ValueType} + * @throws IllegalStateException if the value type of the metric is not a String as defined by {@link org.sonar.api.measures.Metric.ValueType#valueClass} + * To find out the value type of a metric, check it's definition (eg., core metrics are defined in {@link org.sonar.api.measures.CoreMetrics}). */ String getStringValue(); /** * The value of this measure as a boolean. * - * @throws IllegalStateException if the value type of the metric is not a boolean. See {@link org.sonar.api.measures.Metric.ValueType} + * @throws IllegalStateException if the value type of the metric is not a Boolean as defined by {@link org.sonar.api.measures.Metric.ValueType#valueClass} + * To find out the value type of a metric, check it's definition (eg., core metrics are defined in {@link org.sonar.api.measures.CoreMetrics}). */ boolean getBooleanValue(); |