public class DoubleValueConverter extends java.lang.Object implements ValueConverter
Double attributes to and from their
String representation.| Constructor and Description |
|---|
DoubleValueConverter()
Creates a new value converter.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toAttributeValue(java.lang.Object o)
Converts the attribute to a string.
|
java.lang.Object |
toPropertyValue(java.lang.String s)
Converts a string to a
Double. |
public DoubleValueConverter()
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue in interface ValueConvertero - the attribute (Double expected).Double value.public java.lang.Object toPropertyValue(java.lang.String s)
Double.toPropertyValue in interface ValueConverters - the string.Double.