ArrayConverter
implementation@Deprecated public final class FloatArrayConverter extends AbstractArrayConverter
Standard Converter
implementation that converts an incoming
String into a primitive array of float. On a conversion failure, returns
a specified default value or throws a ConversionException
depending
on how this instance is constructed.
defaultValue, NO_DEFAULT, strings, useDefault
Constructor and Description |
---|
FloatArrayConverter()
Deprecated.
Create a
Converter that will throw
a ConversionException if a conversion error occurs. |
FloatArrayConverter(Object defaultValue)
Deprecated.
Create a
Converter that will return
the specified default value if a conversion error occurs. |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Class type,
Object value)
Deprecated.
Convert the specified input object into an output object of the
specified type.
|
parseElements
public FloatArrayConverter()
Converter
that will throw
a ConversionException
if a conversion error occurs.public Object convert(Class type, Object value)
convert
in interface Converter
convert
in class AbstractArrayConverter
type
- Data type to which this value should be convertedvalue
- The input value to be convertedConversionException
- if conversion cannot be performed
successfullyCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.