org.apache.wicket.util.convert.converter
Class FloatConverter

java.lang.Object
  extended by org.apache.wicket.util.convert.converter.AbstractConverter<N>
      extended by org.apache.wicket.util.convert.converter.AbstractNumberConverter<N>
          extended by org.apache.wicket.util.convert.converter.AbstractDecimalConverter<Float>
              extended by org.apache.wicket.util.convert.converter.FloatConverter
All Implemented Interfaces:
Serializable, IClusterable, IConverter<Float>

public class FloatConverter
extends AbstractDecimalConverter<Float>

Converts from Object to Float.

Author:
Eelco Hillenius, Jonathan Locke
See Also:
Serialized Form

Field Summary
static IConverter<Float> INSTANCE
          The singleton instance for a float converter
 
Constructor Summary
FloatConverter()
           
 
Method Summary
 Float convertToObject(String value, Locale locale)
          Converts the given String value
protected  Class<Float> getTargetType()
           
 
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractDecimalConverter
getNumberFormat, newNumberFormat, setNumberFormat
 
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractNumberConverter
convertToString, parse
 
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IConverter<Float> INSTANCE
The singleton instance for a float converter

Constructor Detail

FloatConverter

public FloatConverter()
Method Detail

convertToObject

public Float convertToObject(String value,
                             Locale locale)
Description copied from interface: IConverter
Converts the given String value

Parameters:
value - The string value to convert
locale - The locale used to convert the value
Returns:
The converted value
See Also:
IConverter.convertToObject(java.lang.String,Locale)

getTargetType

protected Class<Float> getTargetType()
Specified by:
getTargetType in class AbstractConverter<Float>
Returns:
The target type of this type converter
See Also:
AbstractConverter.getTargetType()


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.