Package org.sonar.api.ce.measure.test
Class TestMeasure
- java.lang.Object
-
- org.sonar.api.ce.measure.test.TestMeasure
-
-
Constructor Summary
Constructors Constructor Description TestMeasure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestMeasure
createMeasure(boolean booleanValue)
static TestMeasure
createMeasure(double doubleValue)
static TestMeasure
createMeasure(int intValue)
static TestMeasure
createMeasure(long longValue)
static TestMeasure
createMeasure(java.lang.String stringValue)
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.java.lang.String
getStringValue()
The value of this measure as a string.
-
-
-
Method Detail
-
createMeasure
public static TestMeasure createMeasure(double doubleValue)
-
createMeasure
public static TestMeasure createMeasure(int intValue)
-
createMeasure
public static TestMeasure createMeasure(long longValue)
-
createMeasure
public static TestMeasure createMeasure(java.lang.String stringValue)
-
createMeasure
public static TestMeasure createMeasure(boolean booleanValue)
-
getIntValue
public int getIntValue()
Description copied from interface:Measure
The value of this measure as a integer.- Specified by:
getIntValue
in interfaceMeasure
-
getLongValue
public long getLongValue()
Description copied from interface:Measure
The value of this measure as a long.- Specified by:
getLongValue
in interfaceMeasure
-
getDoubleValue
public double getDoubleValue()
Description copied from interface:Measure
The value of this measure as a double.- Specified by:
getDoubleValue
in interfaceMeasure
-
getStringValue
public java.lang.String getStringValue()
Description copied from interface:Measure
The value of this measure as a string.- Specified by:
getStringValue
in interfaceMeasure
-
getBooleanValue
public boolean getBooleanValue()
Description copied from interface:Measure
The value of this measure as a boolean.- Specified by:
getBooleanValue
in interfaceMeasure
-
-