com.greenpepper.converter.AbstractPrimitiveArrayConverter Maven / Gradle / Ivy
package com.greenpepper.converter;
import com.greenpepper.TypeConversion;
/**
* AbstractPrimitiveArrayConverter class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class AbstractPrimitiveArrayConverter extends ArrayConverter
{
/** {@inheritDoc} */
@Override
public boolean canConvertTo( Class type )
{
return isArray( type ) && TypeConversion.supports( type.getComponentType() ) && type.getComponentType().isPrimitive();
}
}