0
public abstract class VfNetCallback<T> extends AbsCallback<VfNetResponse<T>> {
@Override
public VfNetResponse<T> parseNetworkResponse(Response response, int id) throws Exception {
VfNetResponse<T> netResponse = JSON.parseObject(response.body().toString(), VfNetResponse<T>.class);
return netResponse;
}
}
Class<T> dataClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
拿到類的T
。但是我怎樣才能獲得VfNetResponse<T>
的課程?