public class IlvNumberConverter extends Object implements IlvDataConverter, Serializable
java.lang.Number object
and a double value. The java.lang.Number subclasses supported
are the java.lang.Byte, java.lang.Short,
java.lang.Integer, java.lang.Long,
java.lang.Float and java.lang.Double classes.| Constructor and Description |
|---|
IlvNumberConverter(Class<?> type)
Creates a new
IlvNumberConverter object for the specified
Number subclass. |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
getType()
Returns the converting class associated with this converter.
|
Object |
toObject(double value)
Converts the given value to the destination class.
|
double |
toValue(Object object)
Converts the given object to its double representation.
|
public IlvNumberConverter(Class<?> type)
IlvNumberConverter object for the specified
Number subclass.public double toValue(Object object)
toValue in interface IlvDataConverterobject - The object to convert. Should be an instance of
java.lang.Number.public Object toObject(double value)
toObject in interface IlvDataConvertervalue - The value to convert.protected final Class<?> getType()
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.