net.sf.dynamicreports.report.builder.datatype
Class NumberType<T extends Number>
java.lang.Object
net.sf.dynamicreports.report.base.datatype.AbstractDataType<Number,T>
net.sf.dynamicreports.report.builder.datatype.NumberType<T>
- All Implemented Interfaces:
- Serializable, DRIDataType<Number,T>
- Direct Known Subclasses:
- BigDecimalType, BigIntegerType, ByteType, DoubleType, FloatType, IntegerType, LongType, ShortType
public abstract class NumberType<T extends Number>
- extends AbstractDataType<Number,T>
- Author:
- Ricardo Mariaca (r.mariaca@dynamicreports.org)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberType
public NumberType()
valueToString
public String valueToString(Number value,
Locale locale)
- Specified by:
valueToString
in interface DRIDataType<Number,T extends Number>
- Overrides:
valueToString
in class AbstractDataType<Number,T extends Number>
stringToValue
public T stringToValue(String value,
Locale locale)
throws DRException
- Specified by:
stringToValue
in interface DRIDataType<Number,T extends Number>
- Overrides:
stringToValue
in class AbstractDataType<Number,T extends Number>
- Throws:
DRException
numberToValue
protected abstract T numberToValue(Number number)
getValueClass
public Class<T> getValueClass()
- Specified by:
getValueClass
in interface DRIDataType<Number,T extends Number>
- Overrides:
getValueClass
in class AbstractDataType<Number,T extends Number>
Copyright © 2010-2014. All Rights Reserved.