Class DoubleArrayConverter
java.lang.Object
jodd.typeconverter.impl.DoubleArrayConverter
- All Implemented Interfaces:
TypeConverter<double[]>
Converts given object to
double[].-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Converts object received as parameter into object of another class.protected double[]convertArrayToArray(Object value) Converts array value to array.protected double[]convertPrimitiveArrayToArray(Object value, Class primitiveComponentType) Converts primitive array to target array.protected double[]Creates an array with single element.protected doubleconvertType(Object value) Converts type using type converter manager.protected double[]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
-
DoubleArrayConverter
-
-
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<double[]>- 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
-