android中的AsyncTask类里面有这样一个方法....
new AsyncLoader().execute((Void)null);
...
...
class AsyncLoader extends AsyncTask<Void, Void, Integer>{
@Override
protected Integer doInBackground(Void... params) {
initProgress();
return null;
}
}
...这个Void是什么意思啊.不明白
new AsyncLoader().execute((Void)null);
...
...
class AsyncLoader extends AsyncTask<Void, Void, Integer>{
@Override
protected Integer doInBackground(Void... params) {
initProgress();
return null;
}
}
...这个Void是什么意思啊.不明白
Void类是一个不可实例化的占位符类,它持有对表示Java关键字void的Class对象的引用。