Class FloatConverter
- java.lang.Object
-
- org.apache.wicket.util.convert.converter.AbstractConverter<N>
-
- org.apache.wicket.util.convert.converter.AbstractNumberConverter<N>
-
- org.apache.wicket.util.convert.converter.AbstractDecimalConverter<java.lang.Float>
-
- org.apache.wicket.util.convert.converter.FloatConverter
-
- All Implemented Interfaces:
java.io.Serializable,IConverter<java.lang.Float>,IClusterable
public class FloatConverter extends AbstractDecimalConverter<java.lang.Float>
Converts from Object to Float.- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IConverter<java.lang.Float>INSTANCEThe singleton instance for a float converter
-
Constructor Summary
Constructors Constructor Description FloatConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.FloatconvertToObject(java.lang.String value, java.util.Locale locale)Converts the givenStringvalueprotected java.lang.Class<java.lang.Float>getTargetType()-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractDecimalConverter
newNumberFormat
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractNumberConverter
convertToString, getNumberFormat, parse
-
Methods inherited from class org.apache.wicket.util.convert.converter.AbstractConverter
newConversionException, parse
-
-
-
-
Field Detail
-
INSTANCE
public static final IConverter<java.lang.Float> INSTANCE
The singleton instance for a float converter
-
-
Method Detail
-
convertToObject
public java.lang.Float convertToObject(java.lang.String value, java.util.Locale locale)Description copied from interface:IConverterConverts the givenStringvalue- Parameters:
value- The string value to convertlocale- The locale used to convert the value- Returns:
- The converted value
- See Also:
IConverter.convertToObject(java.lang.String,Locale)
-
getTargetType
protected java.lang.Class<java.lang.Float> getTargetType()
- Specified by:
getTargetTypein classAbstractConverter<java.lang.Float>- Returns:
- The target type of this type converter
- See Also:
AbstractConverter.getTargetType()
-
-