Class IntegerArrayConverter
java.lang.Object
jodd.typeconverter.impl.IntegerArrayConverter
- All Implemented Interfaces:
TypeConverter<int[]>
Converts given object to
int[].-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]Converts object received as parameter into object of another class.protected int[]convertArrayToArray(Object value) Converts array value to array.protected int[]convertPrimitiveArrayToArray(Object value, Class primitiveComponentType) Converts primitive array to target array.protected int[]Creates an array with single element.protected intconvertType(Object value) Converts type using type converter manager.protected int[]convertValueToArray(Object value) Converts non-array value to array.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TypeConverter
convert
-
Field Details
-
typeConverterManager
-
-
Constructor Details
-
IntegerArrayConverter
-
-
Method Details
-
convert
Description copied from interface:TypeConverterConverts object received as parameter into object of another class. For example, anIntegerconverter tries to convert given objects into targetIntegerobject. Converters should try all reasonable ways of conversion into target object, depending on target type.- Specified by:
convertin interfaceTypeConverter<int[]>- Parameters:
value- object to convert from- Returns:
- resulting object converted to target type
-
convertType
Converts type using type converter manager. -
convertToSingleElementArray
Creates an array with single element. -
convertValueToArray
Converts non-array value to array. Detects various collection types and iterates them to make conversion and to create target array. -
convertArrayToArray
Converts array value to array. -
convertPrimitiveArrayToArray
-