public class IntegerArrayConverter extends java.lang.Object implements TypeConverter<int[]>
int[].| Modifier and Type | Field and Description |
|---|---|
protected TypeConverterManager |
typeConverterManager |
| Constructor and Description |
|---|
IntegerArrayConverter(TypeConverterManager typeConverterManager) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
convert(java.lang.Object value)
Converts object received as parameter into object of another class.
|
protected int[] |
convertArrayToArray(java.lang.Object value)
Converts array value to array.
|
protected int[] |
convertPrimitiveArrayToArray(java.lang.Object value,
java.lang.Class primitiveComponentType)
Converts primitive array to target array.
|
protected int[] |
convertToSingleElementArray(java.lang.Object value)
Creates an array with single element.
|
protected int |
convertType(java.lang.Object value)
Converts type using type converter manager.
|
protected int[] |
convertValueToArray(java.lang.Object value)
Converts non-array value to array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertprotected final TypeConverterManager typeConverterManager
public IntegerArrayConverter(TypeConverterManager typeConverterManager)
public int[] convert(java.lang.Object value)
TypeConverterInteger converter tries to convert given objects
into target Integer object. Converters should try all reasonable
ways of conversion into target object, depending on target type.convert in interface TypeConverter<int[]>value - object to convert fromprotected int convertType(java.lang.Object value)
protected int[] convertToSingleElementArray(java.lang.Object value)
protected int[] convertValueToArray(java.lang.Object value)
protected int[] convertArrayToArray(java.lang.Object value)
protected int[] convertPrimitiveArrayToArray(java.lang.Object value,
java.lang.Class primitiveComponentType)
Copyright © 2003-present Jodd Team