private boolean isAllWhiteNameListShop(List<CqShopReportInfoDO> shopReportInfoList) { for (int i = 0; i < shopReportInfoList.size(); i++) { CqShopReportInfoDO obj = shopReportInfoList.get(i); if (!isWhiteNameList(obj.getStatus(), obj.getDealerId(), obj.getDealerNick())) { return false; } } return true; } private boolean isAllWhiteNameListAuction(List<CqAuctionReportInfoDO> auctionReportInfoList) { for (int i = 0; i < auctionReportInfoList.size(); i++) { CqAuctionReportInfoDO obj = auctionReportInfoList.get(i); if (!isWhiteNameList(obj.getStatus(), obj.getDealerId(), obj.getDealerNick())) { return false; } } return true; }
想把上面两个方法 重构成一个方法 ,本人水平有限,求高手帮我重构下,谢谢