public class DoubleProperty extends NumberProperty
log
Constructor and Description |
---|
DoubleProperty() |
DoubleProperty(String name,
double value) |
Modifier and Type | Method and Description |
---|---|
DoubleProperty |
clone() |
boolean |
getBooleanValue()
Returns false if string is invalid or null.
|
double |
getDoubleValue()
Returns 0 if string is invalid or null.
|
float |
getFloatValue()
Returns 0 if string is invalid or null.
|
int |
getIntValue()
Returns 0 if string is invalid or null.
|
long |
getLongValue()
Returns 0 if string is invalid or null.
|
Object |
getObjectValue() |
String |
getStringValue() |
void |
recoverRunningVersion(TestElement owner)
Tell the property to revert to the state at the time
setRunningVersion(true) was called.
|
protected void |
setNumberValue(Number n)
Set the value of the property with a Number object.
|
protected void |
setNumberValue(String n)
Set the value of the property with a String object.
|
void |
setRunningVersion(boolean runningVersion)
Make the property a running version or turn it off as the running
version.
|
void |
setValue(float value) |
compareTo, setObjectValue
convertObject, createProperty, equals, getBlankProperty, getBlankProperty, getIterator, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, toString
public DoubleProperty(String name, double value)
public DoubleProperty()
public void setValue(float value)
protected void setNumberValue(Number n)
setNumberValue
in class NumberProperty
n
- the value to setprotected void setNumberValue(String n) throws NumberFormatException
setNumberValue
in class NumberProperty
n
- the number to set as a string representationNumberFormatException
- if the number n
can not be converted to a
Number
public String getStringValue()
public Object getObjectValue()
public DoubleProperty clone()
clone
in interface JMeterProperty
clone
in class AbstractProperty
public boolean getBooleanValue()
getBooleanValue
in interface JMeterProperty
getBooleanValue
in class AbstractProperty
JMeterProperty.getBooleanValue()
public double getDoubleValue()
getDoubleValue
in interface JMeterProperty
getDoubleValue
in class AbstractProperty
JMeterProperty.getDoubleValue()
public float getFloatValue()
getFloatValue
in interface JMeterProperty
getFloatValue
in class AbstractProperty
JMeterProperty.getFloatValue()
public int getIntValue()
getIntValue
in interface JMeterProperty
getIntValue
in class AbstractProperty
JMeterProperty.getIntValue()
public long getLongValue()
AbstractProperty
getLongValue
in interface JMeterProperty
getLongValue
in class AbstractProperty
JMeterProperty.getLongValue()
public void setRunningVersion(boolean runningVersion)
setRunningVersion
in interface JMeterProperty
setRunningVersion
in class AbstractProperty
runningVersion
- flag whether this property is a running versionpublic void recoverRunningVersion(TestElement owner)
owner
- the owning elementCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.