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 java.lang.Object implements Converter<SourceType[],TargetType[]>
Converter
that converts an array of arbitrary objects to a typed array for a given type and a givenConversionManager
.- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description GenericArrayConverter(ArrayFactory<TargetType> factory, ConversionManager conversionManager, java.lang.Class<TargetType> targetElementType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetType[]
convert(SourceType[] list)
Converts the specified object and returns the conversion result.
-
-
-
Constructor Detail
-
GenericArrayConverter
public GenericArrayConverter(ArrayFactory<TargetType> factory, ConversionManager conversionManager, java.lang.Class<TargetType> targetElementType)
-
-
Method Detail
-
convert
public TargetType[] convert(SourceType[] list)
Description copied from interface:Converter
Converts the specified object and returns the conversion result. Implementations have to acceptnull
-values without throwing exceptions.- Specified by:
convert
in interfaceConverter<SourceType,TargetType>
- Parameters:
list
- object to convert- Returns:
- the converted object
-
-