java Stream 转换备忘

ArrayList dataList = customRoadDao.queryCustomRoadList(customRoadDaoData);

dataList.stream().
        map(customRoadAO -> {customRoadAO.setWkt(JTSGeometryUtils.convertWkt(customRoadAO.getWkt()));customRoadAO.setWktObj(JSON.parseArray(customRoadAO.getWkt()));return customRoadAO;}).
        forEach(customRoadAO -> System.out.println(customRoadAO));

你可能感兴趣的:(Java)