org.apache.jmeter.testelement.property
Class NumberProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.NumberProperty
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, JMeterProperty
- Direct Known Subclasses:
- DoubleProperty, FloatProperty, IntegerProperty, LongProperty
public abstract class NumberProperty
- extends AbstractProperty
- See Also:
- Serialized Form
Method Summary |
int |
compareTo(java.lang.Object arg0)
Compares two JMeterProperty object values. |
protected abstract void |
setNumberValue(java.lang.Number n)
Set the value of the property with a Number object. |
protected abstract void |
setNumberValue(java.lang.String n)
Set the value of the property with a String object. |
void |
setObjectValue(java.lang.Object v)
|
Methods inherited from class org.apache.jmeter.testelement.property.AbstractProperty |
clone, convertObject, createProperty, equals, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, setRunningVersion, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
NumberProperty
public NumberProperty()
NumberProperty
public NumberProperty(java.lang.String name)
setNumberValue
protected abstract void setNumberValue(java.lang.Number n)
- Set the value of the property with a Number object.
setNumberValue
protected abstract void setNumberValue(java.lang.String n)
throws java.lang.NumberFormatException
- Set the value of the property with a String object.
- Throws:
java.lang.NumberFormatException
setObjectValue
public void setObjectValue(java.lang.Object v)
compareTo
public int compareTo(java.lang.Object arg0)
- Description copied from class:
AbstractProperty
- Compares two JMeterProperty object values. N.B. Does not compare names
- Specified by:
compareTo
in interface java.lang.Comparable
- Overrides:
compareTo
in class AbstractProperty
- Parameters:
arg0
- JMeterProperty to compare against
- Returns:
- 0 if equal values or both values null; -1 otherwise
- See Also:
Comparable.compareTo(Object)
Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.