public boolean canConvert(Object value, Class<?> toType) { if ( ConstructorUtils.isClassArray(toType)) { return true; } return false; }
public boolean canConvert(Object value, Class<?> toType) { if ( ConstructorUtils.isClassArray(toType)) { return true; } return false; }
/** * Get the wrapper class for this class if there is one * @param beanClass any class * @return the wrapper class if there is one OR just returns the given class */ public static Class<?> getWrapper(final Class<?> beanClass) { Class<?> wrapper = null; if (beanClass != null) { if ( isClassPrimitive(beanClass) ) { wrapper = getPrimitiveToWrapper().get(beanClass); } else if ( isClassArray(beanClass) && beanClass.getComponentType().isPrimitive()) { wrapper = getPrimitiveToWrapper().get(beanClass); } else { wrapper = beanClass; } if (wrapper == null) { wrapper = beanClass; } } return wrapper; }
/** * Get the wrapper class for this class if there is one * @param beanClass any class * @return the wrapper class if there is one OR just returns the given class */ public static Class<?> getWrapper(final Class<?> beanClass) { Class<?> wrapper = null; if (beanClass != null) { if ( isClassPrimitive(beanClass) ) { wrapper = getPrimitiveToWrapper().get(beanClass); } else if ( isClassArray(beanClass) && beanClass.getComponentType().isPrimitive()) { wrapper = getPrimitiveToWrapper().get(beanClass); } else { wrapper = beanClass; } if (wrapper == null) { wrapper = beanClass; } } return wrapper; }
if ( ConstructorUtils.isClassArray(fromType) ) {
throw new IllegalArgumentException("Invalid indexedObject, cannot be null"); if ( ConstructorUtils.isClassArray(indexedObject.getClass()) ) {
throw new IllegalArgumentException("Invalid indexedObject, cannot be null"); if ( ConstructorUtils.isClassArray(indexedObject.getClass()) ) {
/** * @param type any class * @return true if this is a collection, map, or array, * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array) */ public static boolean isClassObjectHolder(Class<?> type) { checkNull(type); boolean holder = false; if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) { holder = true; } return holder; }
if ( ConstructorUtils.isClassArray(fromType) ) {
/** * @param type any class * @return true if this is a collection, map, or array, * something that holds a bunch of objects (e.g. {@link Map}, {@link Set}, {@link List}, array) */ public static boolean isClassObjectHolder(Class<?> type) { checkNull(type); boolean holder = false; if ( isClassArray(type) || isClassCollection(type) || isClassMap(type) ) { holder = true; } return holder; }
if ( ConstructorUtils.isClassArray(fromType) ) {
if ( ConstructorUtils.isClassArray(fromType) ) {
if ( ConstructorUtils.isClassArray(fromType) ) {
if ( ConstructorUtils.isClassArray(fromType) ) {
Object toConvert = value; if ( ConstructorUtils.isClassArray(fromType) ) {
Object toConvert = value; if ( ConstructorUtils.isClassArray(fromType) ) {
if ( ConstructorUtils.isClassArray(fieldType) ) {
if ( ConstructorUtils.isClassArray(fieldType) ) {
if ( ConstructorUtils.isClassArray(fieldType) ) {
if ( ConstructorUtils.isClassArray(fieldType) ) {