zoukankan      html  css  js  c++  java
  • JDK8 使用总结

    // 统计还款本金
    BigDecimal repayPrincipleAmount = preReturnInfoResponList.stream().map(PreReturnInfoRespon::getRepayPrinciple).reduce(BigDecimal.ZERO, BigDecimal::add);

    // 分组统计 Group InterestInfo by name
    Map<String, List<InterestInfo>> totalGroup = totalInterestInfos.stream()
    .collect(Collectors.groupingBy(InterestInfo::getName));

    // 比较对象,指定字段
    QueryBindCardInfoResponse grcBindCardInfo = new QueryBindCardInfoResponse();
            grcBindCardInfo.setUserNo(userAppInfo.getUserId());
            grcBindCardInfo.setUserName(userAppInfo.getClientName());
            grcBindCardInfo.setIdCard(bankCard.getAccount());
            grcBindCardInfo.setMobile(bankCard.getRelationMobile());
            // TODO 设置 fundCode
            String[] excludeFields = {"secondaryAccount", "bindTime"};
    
            List<QueryBindCardInfoResponse> dataList = bankCardCore.bindCardQuery(userAppInfo.getUserId(), null);
            boolean containCard = dataList.stream()
                    .anyMatch(data -> (EqualsBuilder.reflectionEquals(data, grcBindCardInfo, excludeFields)));
    

      

  • 相关阅读:
    竞赛题解
    学习笔记
    竞赛题解
    学习笔记
    竞赛题解
    竞赛题解
    竞赛题解
    「链接」原博客链接
    「杂录」THUWC 2020 游记
    「杂录」CSP-S 2019 爆炸记&题解
  • 原文地址:https://www.cnblogs.com/move22/p/9967288.html
Copyright © 2011-2022 走看看