org.apache.commons.beanutils.converters
Class LongArrayConverter
- Converter
public final class LongArrayConverter
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.
$Revision: 556229 $ $Date: 2007-07-14 07:11:19 +0100 (Sat, 14 Jul 2007) $private static long[] | MODEL - Model object for type comparisons.
|
Object | convert(Class type, Object value) - Convert the specified input object into an output object of the
specified type.
|
MODEL
private static final long[] MODEL
Model object for type comparisons.
LongArrayConverter
public LongArrayConverter()
LongArrayConverter
public LongArrayConverter(Object defaultValue)
Create a
Converter
that will return
the specified default value if a conversion error occurs.
defaultValue
- The default value to be returned
convert
public Object convert(Class type,
Object value)
Convert the specified input object into an output object of the
specified type.
- convert in interface Converter
- convert in interface AbstractArrayConverter
type
- Data type to which this value should be convertedvalue
- The input value to be converted
Copyright (c) 2001-2007 - Apache Software Foundation