ArrayList<CustomRoadAO> 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 Stream 转换备忘
最新推荐文章于 2024-08-22 11:54:43 发布