Class LongArrayConverter
java.lang.Object
org.apache.commons.beanutils.converters.AbstractArrayConverter
org.apache.commons.beanutils.converters.LongArrayConverter
- All Implemented Interfaces:
Converter
Deprecated.
Standard Converter
implementation that converts an incoming
String into a primitive array of long. On a conversion failure, returns
a specified default value or throws a ConversionException
depending
on how this instance is constructed.
- Since:
- 1.4
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long[]
Deprecated.Model object for type comparisons.Fields inherited from class org.apache.commons.beanutils.converters.AbstractArrayConverter
defaultValue, NO_DEFAULT, strings, useDefault
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create aConverter
that will throw aConversionException
if a conversion error occurs.LongArrayConverter
(Object defaultValue) Deprecated.Create aConverter
that will return the specified default value if a conversion error occurs. -
Method Summary
Methods inherited from class org.apache.commons.beanutils.converters.AbstractArrayConverter
parseElements
-
Field Details
-
MODEL
private static final long[] MODELDeprecated.Model object for type comparisons.
-
-
Constructor Details
-
LongArrayConverter
public LongArrayConverter()Deprecated.Create aConverter
that will throw aConversionException
if a conversion error occurs. -
LongArrayConverter
Deprecated.Create aConverter
that will return the specified default value if a conversion error occurs.- Parameters:
defaultValue
- The default value to be returned
-
-
Method Details
-
convert
Deprecated.Convert the specified input object into an output object of the specified type.- Specified by:
convert
in interfaceConverter
- Specified by:
convert
in classAbstractArrayConverter
- Parameters:
type
- Data type to which this value should be convertedvalue
- The input value to be converted- Returns:
- the converted value
- Throws:
ConversionException
- if conversion cannot be performed successfully
-
ArrayConverter
implementation