public static boolean isAssignable(Class targetType,Class valueType){
  Assert.notNull(targetType,"Target type must not be null");
  Assert.notNull(valueType,"Value type must not be null");
  return (targetType.isAssignableFrom(valueType) || targetType.equals(primitiveWrapperTypeMap.get(valueType)));
}

public static boolean isAssignable ( Class targetType , Class valueType ) { Assert . notNull ( targetType , "Target type must not be null" ) ; Assert . notNull ( valueType , "Value type must not be null" ) ; return ( targetType . isAssignableFrom ( valueType ) || targetType . equals ( primitiveWrapperTypeMap . get ( valueType ) ) ) ; }
determine if the given target type is assignable from the given value type , assuming setting by reflection . considers primitive wrapper classes as assignable to the corresponding primitive types .
