org.apache.commons.convert
Class NumberConverters.StringToFloat
java.lang.Object
org.apache.commons.convert.AbstractConverter<S,T>
org.apache.commons.convert.AbstractLocalizedConverter<String,N>
org.apache.commons.convert.NumberConverters.AbstractStringToNumberConverter<Float>
org.apache.commons.convert.NumberConverters.StringToFloat
- All Implemented Interfaces:
- Converter<String,Float>, ConverterLoader, LocalizedConverter<String,Float>
- Enclosing class:
- NumberConverters
public static class NumberConverters.StringToFloat
- extends NumberConverters.AbstractStringToNumberConverter<Float>
An object that converts a String
to a
Float
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberConverters.StringToFloat
public NumberConverters.StringToFloat()
convert
protected Float convert(Number number)
throws ConversionException
- Specified by:
convert
in class NumberConverters.AbstractStringToNumberConverter<Float>
- Throws:
ConversionException
convert
public Float convert(String 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.