public class BooleanArrayConverter extends java.lang.Object implements TypeConverter<boolean[]>
boolean[]
.Modifier and Type | Field and Description |
---|---|
protected TypeConverterManager |
typeConverterManager |
Constructor and Description |
---|
BooleanArrayConverter(TypeConverterManager typeConverterManager) |
Modifier and Type | Method and Description |
---|---|
boolean[] |
convert(java.lang.Object value)
Converts object received as parameter into object of another class.
|
protected boolean[] |
convertArrayToArray(java.lang.Object value)
Converts array value to array.
|
protected boolean[] |
convertPrimitiveArrayToArray(java.lang.Object value,
java.lang.Class primitiveComponentType)
Converts primitive array to target array.
|
protected boolean[] |
convertToSingleElementArray(java.lang.Object value)
Creates an array with single element.
|
protected boolean |
convertType(java.lang.Object value)
Converts type using type converter manager.
|
protected boolean[] |
convertValueToArray(java.lang.Object value)
Converts non-array value to array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert
protected final TypeConverterManager typeConverterManager
public BooleanArrayConverter(TypeConverterManager typeConverterManager)
public boolean[] convert(java.lang.Object value)
TypeConverter
Integer
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<boolean[]>
value
- object to convert fromprotected boolean convertType(java.lang.Object value)
protected boolean[] convertToSingleElementArray(java.lang.Object value)
protected boolean[] convertValueToArray(java.lang.Object value)
protected boolean[] convertArrayToArray(java.lang.Object value)
protected boolean[] convertPrimitiveArrayToArray(java.lang.Object value, java.lang.Class primitiveComponentType)
Copyright © 2003-present Jodd Team