list集合根据条件删除元素

来源:互联网 发布:omp算法 matlab 编辑:程序博客网 时间:2024/05/22 06:45
// 遍历集合去除支付金额大于最大支付限额的支付产品Iterator<PayPrdct> it = payPrdctList.iterator();while (it.hasNext()) {PayPrdct next = it.next();if (next.getMaxPayAmt() != null) {if (next.getMaxPayAmt().doubleValue() >= 0.01&& next.getMaxPayAmt().doubleValue() < Double.parseDouble(payinfo.getPAYAMT())) {it.remove();}}}