Class NumberProperty
java.lang.Object
org.apache.jmeter.testelement.property.AbstractProperty
org.apache.jmeter.testelement.property.NumberProperty
- All Implemented Interfaces:
- Serializable,- Cloneable,- Comparable<JMeterProperty>,- JMeterProperty
- Direct Known Subclasses:
- DoubleProperty,- FloatProperty,- IntegerProperty,- LongProperty
- See Also:
- 
Field SummaryFields inherited from class org.apache.jmeter.testelement.property.AbstractPropertylog
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(JMeterProperty arg0) Compares two JMeterProperty object values.protected abstract voidSet the value of the property with a Number object.protected abstract voidSet the value of the property with a String object.voidMethods inherited from class org.apache.jmeter.testelement.property.AbstractPropertyclone, convertObject, createProperty, equals, getBlankProperty, getBlankProperty, getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getIterator, getLongValue, getName, getPropertyType, hashCode, isEqualType, isRunningVersion, makeProperty, mergeIn, normalizeList, normalizeMap, setName, setRunningVersion, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.property.JMeterPropertygetObjectValue, getStringValue, recoverRunningVersion
- 
Constructor Details- 
NumberPropertyprotected NumberProperty()
- 
NumberProperty
 
- 
- 
Method Details- 
setNumberValueSet the value of the property with a Number object.- Parameters:
- n- the value to set
 
- 
setNumberValueSet the value of the property with a String object.- Parameters:
- n- the number to set as a string representation
- Throws:
- NumberFormatException- if the number- ncan not be converted to a- Number
 
- 
setObjectValue
- 
compareToDescription copied from class:AbstractPropertyCompares two JMeterProperty object values. N.B. Does not compare names- Specified by:
- compareToin interface- Comparable<JMeterProperty>
- Overrides:
- compareToin class- AbstractProperty
- Parameters:
- arg0- JMeterProperty to compare against
- Returns:
- 0 if equal values or both values null; -1 otherwise
- See Also:
 
 
-