Package org.jppf.utils.configuration
Class DoubleProperty
- All Implemented Interfaces:
Serializable,JPPFProperty<Double>
Implementation of
JPPFProperty for double properties.- Since:
- 5.2
- Author:
- Laurent Cohen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleProperty(String name, Double defaultValue, Double minValue, Double maxValue, String... aliases) Initialize this property with the specified name and default value.DoubleProperty(String name, Double defaultValue, String... aliases) Initialize this property with the specified name and default value. -
Method Summary
Methods inherited from class org.jppf.utils.configuration.NumberProperty
getMaxValue, getMinValue, hasMinAndMaxMethods inherited from class org.jppf.utils.configuration.AbstractJPPFProperty
getAliases, getDefaultValue, getDeprecatedDoc, getDeprecatedDoc, getDocumentation, getDocumentation, getI18nBase, getName, getParameterDoc, getParameters, getPossibleValues, getShortLabel, getShortLabel, getTags, isDeprecated, resolveName, resolveName, setDeprecated, setI18nBase, setPossibleValues, toString, toString
-
Constructor Details
-
DoubleProperty
Initialize this property with the specified name and default value.- Parameters:
name- the name of this property.defaultValue- the default value of this property, used when the property is not defined.aliases- other names that may be given to this property (e.g. older names from previous versions).
-
DoubleProperty
public DoubleProperty(String name, Double defaultValue, Double minValue, Double maxValue, String... aliases) Initialize this property with the specified name and default value.- Parameters:
name- the name of this property.defaultValue- the default value of this property, used when the proeprty is not defined.aliases- other names that may be given to this property (e.g. older names from previous versions).minValue- the minimum accepted value for this property.maxValue- the maximum accepted value for this property.
-
-
Method Details
-
valueOf
Description copied from interface:JPPFPropertyConvert the specified value into the type of values handled by this property.- Parameters:
value- the property value to convert.- Returns:
- the value converted to the type of this property.
-
valueType
Description copied from interface:JPPFPropertyReturn the class object for the type of values of this property.- Returns:
- a
Classinstance.
-