我正在尝试在自定义列表上使用 addAll() 方法。我有以下Java代码;
PaginatedResponse<CustomType> paginatedResponse = new PaginatedResponse<CustomType>();
List<PaginatedResponse<CustomType>> paginatedResponseList = new ArrayList<PaginatedResponse<CustomType>>();
paginatedResponseList.addAll(methodReturningPaginatedResponseOfCustomType);
但是我收到一个错误。没有找到适合 addAll() 的方法
我在这里做错了什么?