public class BigDecimalValueConverter extends java.lang.Object implements ValueConverter
BigDecimal attributes to and from their
String representation.| Constructor and Description |
|---|
BigDecimalValueConverter()
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
BigDecimal. |
public BigDecimalValueConverter()
public java.lang.String toAttributeValue(java.lang.Object o)
toAttributeValue in interface ValueConvertero - the attribute (BigDecimal expected).BigDecimal value.public java.lang.Object toPropertyValue(java.lang.String s)
BigDecimal.toPropertyValue in interface ValueConverters - the string.BigDecimal.