public class IlvStringConverter extends Object implements IlvDataConverter
String object
and a double value.| Constructor and Description |
|---|
IlvStringConverter()
Creates a new
IlvStringConverter object
that performs a locale independent conversion, using the default
Java conversion between numbers and strings. |
IlvStringConverter(Locale locale)
Creates a new
IlvStringConverter object
that performs a conversion using the conventions for the given locale. |
IlvStringConverter(ULocale locale)
Creates a new
IlvStringConverter object
that performs a conversion using the conventions for the given locale. |
| Modifier and Type | Method and Description |
|---|---|
Object |
toObject(double value)
Converts the given double value to a
java.lang.String object. |
double |
toValue(Object object)
Converts the given object to a double value.
|
public IlvStringConverter()
IlvStringConverter object
that performs a locale independent conversion, using the default
Java conversion between numbers and strings.public IlvStringConverter(Locale locale)
IlvStringConverter object
that performs a conversion using the conventions for the given locale.public IlvStringConverter(ULocale locale)
IlvStringConverter object
that performs a conversion using the conventions for the given locale.public Object toObject(double value)
java.lang.String object.toObject in interface IlvDataConverterpublic double toValue(Object object)
toValue in interface IlvDataConverterobject - The object to convert. Should be an instance of
java.lang.String.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.