67,515
社区成员
发帖
与我相关
我的任务
分享
private void processLastPage(List productsOnLastPage) {
if (productsOnLastPage.size() >= this.productsPerPage) return;
List dummyProducts = new ArrayList();
int diff = this.productsPerPage - productsOnLastPage.size();
for (int i=0; i<diff; i++) {
dummyProducts.add(new ProductBean());
}
productsOnLastPage.addAll(dummyProducts);
}