@ List < Student> studentList = xxmapper.getxx(xx); studentList .stream.forEach(xx
@ context.setVariable(“rpcErrorNum”, errortypeSummary.stream().filter(item->item.compareType(item.getErrorCode())==2).collect(Collectors.toList()).stream().count());
List< JSONObject> list = result.stream().filter(obj -> JSON.praseObject(obj.toString()).getLong(“excutes”) >20) .map(item -> JSON.praseObject(item.toString()).collect(Collectors.toList()); //注意用新的list来接收.collect(Collectors.toList()) @ List< String> nameList = new ArrayList<>(); xx----namList.add(xx) List< Integer> collect = Arrays.asList(tileNameArr).stream().map((title) -> nameList.indexOf(title)).collect(Collectors.toList());
|