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