Package jodd.typeconverter.impl
Class StringArrayConverter
- All Implemented Interfaces:
TypeConverter<String[]>
Converts given object to
String[].
Based on ArrayConverter, but optimized for String arrays.-
Field Summary
Fields inherited from class jodd.typeconverter.impl.ArrayConverter
NUMBER_DELIMITERS, targetComponentType, typeConverterManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]convertPrimitiveArrayToArray(Object value, Class primitiveComponentType) Converts primitive array to target array.protected String[]createArray(int length) Creates new array of target component type.Methods inherited from class jodd.typeconverter.impl.ArrayConverter
convert, convertArrayToArray, convertStringToArray, convertToSingleElementArray, convertType, convertValueToArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jodd.typeconverter.TypeConverter
convert
-
Constructor Details
-
StringArrayConverter
-
-
Method Details
-
createArray
Description copied from class:ArrayConverterCreates new array of target component type. Default implementation uses reflection to create an array of target type. Override it for better performances.- Overrides:
createArrayin classArrayConverter<String>
-
convertPrimitiveArrayToArray
Description copied from class:ArrayConverterConverts primitive array to target array.- Overrides:
convertPrimitiveArrayToArrayin classArrayConverter<String>
-