public final class

LongArrayConverter

extends AbstractArrayConverter
java.lang.Object
   ↳ org.apache.commons.beanutils.converters.AbstractArrayConverter
     ↳ org.apache.commons.beanutils.converters.LongArrayConverter

This class is deprecated.
Replaced by the new ArrayConverter implementation

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.beanutils.converters.AbstractArrayConverter
Public Constructors
LongArrayConverter()
Create a Converter that will throw a ConversionException if a conversion error occurs.
LongArrayConverter(Object defaultValue)
Create a Converter that will return the specified default value if a conversion error occurs.
Public Methods
Object convert(Class type, Object value)
Convert the specified input object into an output object of the specified type.
[Expand]
Inherited Methods
From class org.apache.commons.beanutils.converters.AbstractArrayConverter
From class java.lang.Object
From interface org.apache.commons.beanutils.Converter

Public Constructors

public LongArrayConverter ()

Create a Converter that will throw a ConversionException if a conversion error occurs.

public LongArrayConverter (Object defaultValue)

Create a Converter that will return the specified default value if a conversion error occurs.

Parameters
defaultValue The default value to be returned

Public Methods

public Object convert (Class type, Object value)

Convert the specified input object into an output object of the specified type.

Parameters
type Data type to which this value should be converted
value The input value to be converted
Returns
  • the converted value
Throws
ConversionException if conversion cannot be performed successfully