public class DoubleProperty extends AbstractNumericProperty<Double>
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptorFactory |
FACTORY |
NUMBER_FIELD_TYPES_BY_KEY
DEFAULT_DELIMITER, DEFAULT_NUMERIC_DELIMITER
Constructor and Description |
---|
DoubleProperty(String theName,
String theDescription,
Double min,
Double max,
Double theDefault,
float theUIOrder)
Constructor for DoubleProperty.
|
DoubleProperty(String theName,
String theDescription,
String minStr,
String maxStr,
String defaultStr,
float theUIOrder)
Constructor for DoubleProperty.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
createFrom(String value)
Deserializes a string into its Double form.
|
static Double |
doubleFrom(String numberString) |
Class<Double> |
type()
Denotes the value datatype.
|
addAttributesTo, defaultAsString, lowerLimit, rangeString, upperLimit, valueErrorFor
arrayFor, valueFrom
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asDelimitedString, attributeValuesById, choices, defaultValue, description, errorFor, isMultiValue, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, uiOrder, valueFrom
compareTo
public static final PropertyDescriptorFactory FACTORY
public DoubleProperty(String theName, String theDescription, Double min, Double max, Double theDefault, float theUIOrder)
theName
- StringtheDescription
- Stringmin
- doublemax
- doubletheDefault
- doubletheUIOrder
- floatIllegalArgumentException
public DoubleProperty(String theName, String theDescription, String minStr, String maxStr, String defaultStr, float theUIOrder)
theName
- StringtheDescription
- StringminStr
- StringmaxStr
- StringdefaultStr
- StringtheUIOrder
- floatIllegalArgumentException
public static Double doubleFrom(String numberString)
numberString
- Stringpublic Class<Double> type()
PropertyDescriptor
PropertyDescriptor.type()
protected Object createFrom(String value)
createFrom
in class AbstractScalarProperty<Double>
value
- StringCopyright © 2002-2017 PMD. All Rights Reserved.