Class GenericArrayConverter<SourceType,TargetType>
java.lang.Object
com.saperion.util.conversion.array.GenericArrayConverter<SourceType,TargetType>
- All Implemented Interfaces:
Converter<SourceType[],TargetType[]>
public class GenericArrayConverter<SourceType,TargetType>
extends Object
implements Converter<SourceType[],TargetType[]>
Converter that converts an array of arbitrary objects to a typed array
for a given type and a given ConversionManager.- Author:
- jschwarz
-
Constructor Summary
ConstructorsConstructorDescriptionGenericArrayConverter(ArrayFactory<TargetType> factory, ConversionManager conversionManager, Class<TargetType> targetElementType) -
Method Summary
Modifier and TypeMethodDescriptionconvert(SourceType[] list) Converts the specified object and returns the conversion result.
-
Constructor Details
-
GenericArrayConverter
public GenericArrayConverter(ArrayFactory<TargetType> factory, ConversionManager conversionManager, Class<TargetType> targetElementType)
-
-
Method Details
-
convert
Description copied from interface:ConverterConverts the specified object and returns the conversion result. Implementations have to acceptnull-values without throwing exceptions.- Specified by:
convertin interfaceConverter<SourceType,TargetType> - Parameters:
list- object to convert- Returns:
- the converted object
-