org.apache.commons.convert
Class NumberConverters.GenericNumberToDouble<N extends Number>
java.lang.Object
org.apache.commons.convert.AbstractConverter<N,Double>
org.apache.commons.convert.NumberConverters.GenericNumberToDouble<N>
- All Implemented Interfaces:
- Converter<N,Double>, ConverterLoader
- Enclosing class:
- NumberConverters
public static class NumberConverters.GenericNumberToDouble<N extends Number>
- extends AbstractConverter<N,Double>
An object that converts a Number
to a
Double
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberConverters.GenericNumberToDouble
public NumberConverters.GenericNumberToDouble(Class<N> sourceClass)
convert
public Double convert(N obj)
throws ConversionException
- Description copied from interface:
Converter
- Converts
obj
to T
.
- Parameters:
obj
- The source Object
to convert
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.