public class FloatValueConverter extends Object implements ValueConverter
Constructor and Description |
---|
FloatValueConverter()
Creates a new value converter.
|
Modifier and Type | Method and Description |
---|---|
String |
toAttributeValue(Object o)
Converts the attribute to a string.
|
Object |
toPropertyValue(String s)
Converts a string to a
Float . |
public String toAttributeValue(Object o) throws BeanException
toAttributeValue
in interface ValueConverter
o
- the attribute (Float
expected).Float
value.BeanException
- if there was an error during the conversion.public Object toPropertyValue(String s) throws BeanException
Float
.toPropertyValue
in interface ValueConverter
s
- the string.Float
.BeanException
- if there was an error during the conversion.Copyright © 2017 Hitachi Vantara. All rights reserved.